Skip to content

Instantly share code, notes, and snippets.

@tfenster
Forked from glennblock/fork forced sync
Last active April 15, 2023 05:49
Force your forked repo to be the same as upstream. Forces master changes into fork and throws away all changes!
if no upstream remote created: git remote add upstream https://[upstream guy's repo url]
git fetch upstream
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