How do I list all remote branches in Git 1.7+?
问题 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 to me whether the command lists all remote branches or only those that are untracked.) 回答1: For the vast majority [1] of visitors here, the correct and simplest answer to the question "How do I list all remote branches in Git 1.7+?" is: git branch -r For a small minority [1] git branch -r does not work. If git branch -r does not work try: