Skip to content

Instantly share code, notes, and snippets.

@mowtschan
Last active May 13, 2021 09:42
Show Gist options
  • Save mowtschan/6e82841f08f1c26e0241977942173dc9 to your computer and use it in GitHub Desktop.
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
git remote add upstream ORIGINAL_REPO_URL
git fetch upstream
git checkout main
git merge upstream/main
git push