Skip to content

Instantly share code, notes, and snippets.

@willkg
Created August 22, 2012 20:55
Show Gist options
  • 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