Skip to content

Instantly share code, notes, and snippets.

@Chizaram-Igolo
Last active March 7, 2024 12:31
Show Gist options
  • Save Chizaram-Igolo/de553f5927e9de7737afedc4a409af59 to your computer and use it in GitHub Desktop.
Save Chizaram-Igolo/de553f5927e9de7737afedc4a409af59 to your computer and use it in GitHub Desktop.
Re-syncing a Fork that is Commit(s) ahead of Upstream/Master
If you ever get into out-of-sync trouble, clear your working tree on your fork (git add && git commit && git push) and
run the following:
git checkout master
// git fetch upstream (add this for a slightly safer solution)
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