Skip to content

Instantly share code, notes, and snippets.

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