Skip to content

Instantly share code, notes, and snippets.

@kuldipem
Created April 10, 2018 17:57
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 kuldipem/4fde2f8396bdde2626b2896767b633f5 to your computer and use it in GitHub Desktop.
Save kuldipem/4fde2f8396bdde2626b2896767b633f5 to your computer and use it in GitHub Desktop.
git copy all remote
for b in `git branch -r | grep -v -- '->'`; do git branch --track ${b##origin/} $b; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment