Skip to content

Instantly share code, notes, and snippets.

@jaynarayan89
Created September 15, 2017 18:10
Show Gist options
  • Save jaynarayan89/a53ea498b4777bef8556868b04a0425a to your computer and use it in GitHub Desktop.
Save jaynarayan89/a53ea498b4777bef8556868b04a0425a to your computer and use it in GitHub Desktop.
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