Skip to content

Instantly share code, notes, and snippets.

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 AndrewRussellHayes/dc77dc2516fb353289b5 to your computer and use it in GitHub Desktop.
Save AndrewRussellHayes/dc77dc2516fb353289b5 to your computer and use it in GitHub Desktop.
get all remote branches, set them up as local and track remote From http://stackoverflow.com/questions/379081/track-all-remote-git-branches-as-local-branches
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