Created
December 22, 2017 19:31
-
-
Save bear454/e98661f999534d88386921c4e34bfb85 to your computer and use it in GitHub Desktop.
git resync-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
# ~/bin/git-resync-fork | |
# assumes you have the upstream project as a git remote named 'upstream' | |
git checkout master | |
git fetch upstream master | |
git reset --hard upstream/master | |
git push --force |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment