Skip to content

Instantly share code, notes, and snippets.

@quickstep25
Created October 24, 2014 01:11
Show Gist options
  • Save quickstep25/ffbfe12f430298cc62db to your computer and use it in GitHub Desktop.
Save quickstep25/ffbfe12f430298cc62db to your computer and use it in GitHub Desktop.
GitHub - Complete reset of repository to upstream / master.
git remote add upstream /url/to/original/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