Skip to content

Instantly share code, notes, and snippets.

@kevinkepp
Created January 17, 2014 08:38
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 kevinkepp/8470179 to your computer and use it in GitHub Desktop.
Save kevinkepp/8470179 to your computer and use it in GitHub Desktop.
Git: Checkout and track all remote branches ("deep clone")
for remote in `git branch -r | grep -v '\->'`; do git checkout --track $remote; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment