Skip to content

Instantly share code, notes, and snippets.

@kcc0
Created September 22, 2015 06:55
Show Gist options
  • Save kcc0/1f76194925d994a52a95 to your computer and use it in GitHub Desktop.
Save kcc0/1f76194925d994a52a95 to your computer and use it in GitHub Desktop.
Git - Pull all branches from origin
for remote in `git branch -r`; 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