Skip to content

Instantly share code, notes, and snippets.

@AABur
Created April 19, 2022 11:04
Show Gist options
  • Save AABur/ca3589238c918e0c630dad1fe710d9ac to your computer and use it in GitHub Desktop.
Save AABur/ca3589238c918e0c630dad1fe710d9ac to your computer and use it in GitHub Desktop.

ensures current branch is master

git checkout master

pulls all new commits made to upstream/master

git pull upstream master

this will delete all your local changes to master

git reset --hard upstream/master

take care, this will delete all your changes on your forked master

git push origin master --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment