-
-
Save cxhercules/3990e8c1e11349f789508eac8c9e421b to your computer and use it in GitHub Desktop.
Force your forked repo to be the same as upstream.
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
git fetch upstream | |
git reset --hard upstream/master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
git remote add upstream https://github.com/some_user/some_repo
git fetch upstream
git checkout master
git reset --hard upstream/master
git push origin master --force