After git update remote the new upstream branches are visible but not origin

后端 未结 3 1072
梦谈多话
梦谈多话 2021-01-13 20:47

First my terminology: \"upstream\" is the original apache repo (on github). \"origin\" is my fork of the apache repo (also on github).

After executing the followi

3条回答
  •  渐次进展
    2021-01-13 21:23

    Git branch only shows local branches

    Running git branch with no arguments, will show only local branches:

    -> git branch
    * develop
      master
    

    To show only remote branches use the --remote (or -r) option:

    -> git branch --remote
      origin/HEAD -> origin/master
      origin/develop
      origin/master
    

    To show all branches use the --all (or -a) option:

    -> git branch --all
    * develop
      master
      remotes/origin/HEAD -> origin/master
      remotes/origin/develop
      remotes/origin/master
    

    All commands can be combined with the verbose option to get more info:

    -> git branch -vv
    * develop 5cb42f9 [origin/develop: ahead 3] make logging configurable
      master  77de2a8 [origin/master: ahead 7] Merge branch 'develop'
    

    For more info on the branch command arguments, see the documentation

提交回复
热议问题