Last active
March 7, 2024 12:31
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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