Skip to content

Instantly share code, notes, and snippets.

@willkg
Created August 22, 2012 20:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save willkg/3429268 to your computer and use it in GitHub Desktop.
Save willkg/3429268 to your computer and use it in GitHub Desktop.
prints the branches from a specified remote
#!/bin/bash
set -o errexit
USAGE="<remote>"
. git-sh-setup
test $# -lt 1 && usage
git branch -r | grep $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment