Skip to content

Instantly share code, notes, and snippets.

@digininja
Created October 15, 2020 09:18
Show Gist options
  • Save digininja/d11e71184fed5db468eb68fc89afed39 to your computer and use it in GitHub Desktop.
Save digininja/d11e71184fed5db468eb68fc89afed39 to your computer and use it in GitHub Desktop.
Reset a git fork to its upstream master
git fetch upstream
git checkout master
git reset --hard upstream/master
git push origin master --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment