Skip to content

Instantly share code, notes, and snippets.

@bbq2100
Created June 10, 2017 18:25
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 bbq2100/5379b8782377d30ef3d272514032a96e to your computer and use it in GitHub Desktop.
Save bbq2100/5379b8782377d30ef3d272514032a96e to your computer and use it in GitHub Desktop.
Track all remote branches localy
for remote in `git branch -r | grep -v '\->'`; do git branch --track $remote; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment