James A. Rosen James A. Rosen - 1 year ago 83
Git Question

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.)

Answer Source
git ls-remote --heads <remote-name>
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download