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

后端 未结 19 2301
轮回少年
轮回少年 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条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-02 03:53

    I would use:

    git branch -av
    

    This command not only shows you the list of all branches, including remote branches starting with /remote, but it also provides you the * feedback on what you updated and the last commit comments.

提交回复
热议问题