Skip to content

Instantly share code, notes, and snippets.

@fuerbringer
Created February 10, 2018 12:24
Show Gist options
  • Save fuerbringer/1e6316043312d7dcade2779bd64638f4 to your computer and use it in GitHub Desktop.
Save fuerbringer/1e6316043312d7dcade2779bd64638f4 to your computer and use it in GitHub Desktop.
Update a fork to be equal to upstream
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