Skip to content

Instantly share code, notes, and snippets.

@AndrewRussellHayes
Last active August 29, 2015 14:09
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 AndrewRussellHayes/bbd146dcbd371a08f450 to your computer and use it in GitHub Desktop.
Save AndrewRussellHayes/bbd146dcbd371a08f450 to your computer and use it in GitHub Desktop.
fetch all branches from origin and track them as remote branches eg 'origin/branchname' From http://stackoverflow.com/questions/10312521/how-to-fetch-all-git-branches
for remote in `git branch -r`; do git branch --track $remote; 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