How do I list all remote branches in Git 1.7+?

后端 未结 19 2302
轮回少年
轮回少年 2020-12-02 03:14

I\'ve tried git branch -r, but that only lists remote branches that I\'ve tracked locally. How do I find the list of those that I haven\'t? (It doesn\'t matter

19条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-02 04:02

    Just run a git fetch command. It will pull all the remote branches to your local repository, and then do a git branch -a to list all the branches.

提交回复
热议问题