project_release.git.repo_branch_names

project_release.git.repo_branch_names(repo: Repo, remote: Remote | None) List[str][source]

Return the local and remote branches.

Parameters:
  • repo – The current git repository.

  • None (remote or) – The selected remote.

Returns:

The local and remote branches.

Return type:

list of str