Skip to content

Instantly share code, notes, and snippets.

@npero
Created September 5, 2012 08:39
Show Gist options
  • Save npero/3633422 to your computer and use it in GitHub Desktop.
Save npero/3633422 to your computer and use it in GitHub Desktop.
Get all remote branches and for each create an corresponding local branch.
for remote in `git branch -r | grep -v master `; do git checkout --track $remote ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment