Last active
May 13, 2021 09:42
-
-
Save mowtschan/6e82841f08f1c26e0241977942173dc9 to your computer and use it in GitHub Desktop.
Sync a fork of a repository to keep it up-to-date with the upstream repository
This file contains hidden or 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
git remote add upstream ORIGINAL_REPO_URL | |
git fetch upstream | |
git checkout main | |
git merge upstream/main | |
git push |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Links:
https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/configuring-a-remote-for-a-fork
https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/syncing-a-fork