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

后端 未结 19 2305
轮回少年
轮回少年 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 04:03

    The accepted answer works for me. But I found it more useful to have the commits sorted starting with the most recent.

    git branch -r --sort=-committerdate

    https://git-scm.com/docs/git-branch

提交回复
热议问题