Skip to content

Instantly share code, notes, and snippets.

@evaldosantos
Created March 13, 2015 11:53
Show Gist options
  • Save evaldosantos/725a8a63f27e8bf6d042 to your computer and use it in GitHub Desktop.
Save evaldosantos/725a8a63f27e8bf6d042 to your computer and use it in GitHub Desktop.
# fetch all branchs from 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