Skip to content

Instantly share code, notes, and snippets.

@eliranmal
Created June 17, 2019 12:40
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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