Created
November 27, 2013 18:34
-
-
Save lushc/7680822 to your computer and use it in GitHub Desktop.
Sync an out-dated fork
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
remote=upstream ; for brname in `git branch -r | grep upstream | grep -v master | grep -v HEAD | sed -e 's/.*\///g'`; do git branch --track $brname $remote/$brname ; done | |
git pull --rebase --all | |
git push --all origin | |
git push --tags origin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment