Skip to content

Instantly share code, notes, and snippets.

@michealbenedict
Forked from anaisbetts/gist:2332133
Created April 7, 2012 21:30
Show Gist options
  • Save michealbenedict/2332245 to your computer and use it in GitHub Desktop.
Save michealbenedict/2332245 to your computer and use it in GitHub Desktop.
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