Skip to content

Instantly share code, notes, and snippets.

@mjclemente
Forked from glennblock/fork forced sync
Created February 5, 2021 18:38
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 mjclemente/7476a239a35ec746a969878314edab5a to your computer and use it in GitHub Desktop.
Save mjclemente/7476a239a35ec746a969878314edab5a to your computer and use it in GitHub Desktop.
Force your forked repo to be the same as upstream.
git remote add upstream https://github.com/some_user/some_repo
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