Skip to content

Instantly share code, notes, and snippets.

@j1n6
Created April 18, 2018 20:46
Show Gist options
  • Save j1n6/386493f891a3dace2e938f866f4d6958 to your computer and use it in GitHub Desktop.
Save j1n6/386493f891a3dace2e938f866f4d6958 to your computer and use it in GitHub Desktop.
for b in `git branch -r | grep -v -- '->'`; do git branch --track ${b##origin/} $b; done
git fetch --all
git pull --all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment