Last active
August 29, 2015 14:09
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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