Skip to content

Instantly share code, notes, and snippets.

@emileswarts
Created May 19, 2012 13:05
Show Gist options
  • Save emileswarts/2730801 to your computer and use it in GitHub Desktop.
Save emileswarts/2730801 to your computer and use it in GitHub Desktop.
All git branches
for branch in `git branch -a | grep remotes | grep -v HEAD | grep -v master`; do git branch --track ${branch##*/} $branch; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment