I'm using this awesome library called Gift to do all of my standard git things (pulling, reading commits, etc). However, I can't seem to get the remote branches. I believe the git branch -r
command will show me the branches, but the format is certainly not machine-readable:
origin/HEAD -> origin/master
origin/dev
origin/gh-pages
origin/master
I'm wondering how I can go about viewing all of the remote branches that a repository has.
Thanks!