Skip to content

Instantly share code, notes, and snippets.

@codecakes
Created October 21, 2015 04:11
Show Gist options
  • Save codecakes/8fecca848ed102ecc861 to your computer and use it in GitHub Desktop.
Save codecakes/8fecca848ed102ecc861 to your computer and use it in GitHub Desktop.
fetch all git branches and track them
git fetch --all
for remote in `git branch -r`; do git branch --track $remote; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment