Skip to content

Instantly share code, notes, and snippets.

@HoldYourWaffle
Created February 4, 2018 11:03
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 HoldYourWaffle/2cf2ca23b2b46b849523c05e366845fb to your computer and use it in GitHub Desktop.
Save HoldYourWaffle/2cf2ca23b2b46b849523c05e366845fb to your computer and use it in GitHub Desktop.
Git setup all remote tracking branches
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment