Last active
February 18, 2024 19:08
-
-
Save fazlearefin/c6a9319bc48905288c7ad6945a7f59d9 to your computer and use it in GitHub Desktop.
Syncing a forked repo with upstream
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
# fork repo | |
# clone forked repo | |
# add upstram | |
git remote add upstream {{upstram_url}} | |
git remote -v # to verify | |
# regular sync afterwards | |
git fetch upstream | |
git checkout main | |
git merge upstream/main | |
git push origin main |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment