Skip to content

Instantly share code, notes, and snippets.

@bls1999
Created March 16, 2018 15:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bls1999/e1e1cec1028f539a76f6ea1cabc7ff57 to your computer and use it in GitHub Desktop.
Save bls1999/e1e1cec1028f539a76f6ea1cabc7ff57 to your computer and use it in GitHub Desktop.
Reset fork to 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