Skip to content

Instantly share code, notes, and snippets.

@bear454
Created December 22, 2017 19:31
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 bear454/e98661f999534d88386921c4e34bfb85 to your computer and use it in GitHub Desktop.
Save bear454/e98661f999534d88386921c4e34bfb85 to your computer and use it in GitHub Desktop.
git resync-fork
# ~/bin/git-resync-fork
# assumes you have the upstream project as a git remote named 'upstream'
git checkout master
git fetch upstream master
git reset --hard upstream/master
git push --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment