Git: Cannot see new remote branch

前端 未结 9 1923
一个人的身影
一个人的身影 2021-01-29 18:55

A colleague pushed a new remote branch to origin/dev/homepage and I cannot see it when I run:

$ git branch -r

I still see preexisting remote br

9条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-29 19:49

    What ended up finally working for me was to add the remote repository name to the git fetch command, like this:

    git fetch core
    

    Now you can see all of them like this:

    git branch --all
    

提交回复
热议问题