Skip to content

Instantly share code, notes, and snippets.

@rossbar
Last active September 18, 2015 17:43
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 rossbar/3a5b0e6b9072c9507a4e to your computer and use it in GitHub Desktop.
Save rossbar/3a5b0e6b9072c9507a4e to your computer and use it in GitHub Desktop.
Set up local repository to track all remote branches
# http://stackoverflow.com/questions/379081/track-all-remote-git-branches-as-local-branches
for remote in `git branch -r | grep -v /HEAD`; do git checkout --track $remote ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment