Created
April 7, 2012 21:13
-
-
Save anaisbetts/2332133 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 remote add upstream [Clone Url] | |
git fetch upstream | |
git checkout master | |
## At this point, you have two options: | |
git merge upstream/master # Merge yours and theirs | |
git push origin master # Push back to your fork | |
git reset --hard upstream/master # Make yours look *exactly* like theirs, lose your changes; | |
git push --force origin master # Only use this if nobody uses your fork! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment