Skip to content

Instantly share code, notes, and snippets.

@jonathanhle
Last active July 9, 2018 22:38
Show Gist options
  • Save jonathanhle/20f616428d367fa3093637bc6cd9b945 to your computer and use it in GitHub Desktop.
Save jonathanhle/20f616428d367fa3093637bc6cd9b945 to your computer and use it in GitHub Desktop.
git pull --rebase origin master
https://stackoverflow.com/questions/7929369/how-to-rebase-local-branch-with-remote-master
https://www.digitalocean.com/community/tutorials/how-to-rebase-and-update-a-pull-request
1) make sure local "master" is up-to-date
2) check out the branch you want to rebase ontop of "master"
3) git pull --rebase origin master
4) doublecheck to make sure you are on your local branch
5) do a force push
git push -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment