Skip to content

Instantly share code, notes, and snippets.

@fazlearefin
Last active February 18, 2024 19:08
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 fazlearefin/c6a9319bc48905288c7ad6945a7f59d9 to your computer and use it in GitHub Desktop.
Save fazlearefin/c6a9319bc48905288c7ad6945a7f59d9 to your computer and use it in GitHub Desktop.
Syncing a forked repo with upstream
# 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