Skip to content

Instantly share code, notes, and snippets.

@eliranmal
Created June 17, 2019 12:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eliranmal/879c3bff9422b0d0801b137279f2bb11 to your computer and use it in GitHub Desktop.
Save eliranmal/879c3bff9422b0d0801b137279f2bb11 to your computer and use it in GitHub Desktop.
politely updates a fork repository from the upstream repository, by excluding merge commits so they will not appear on pull-requests to the upstream.
git fetch upstream
git checkout master
git rebase upstream/master
git push -f origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment