Remote branch is not showing up in “git branch -r”

前端 未结 5 1261
野性不改
野性不改 2020-12-07 11:17

I have been pushing to a remote Bitbucket repository and recently a colleague has pushed a new branch he created to the same repository.

I\'m trying to fetch the cha

5条回答
  •  心在旅途
    2020-12-07 12:15

    Unfortunately, git branch -a and git branch -r do not show you all remote branches, if you haven't executed a "git fetch".

    git remote show origin works consistently all the time. Also git show-ref shows all references in the Git repository. However, it works just like the git branch command.

提交回复
热议问题