Skip to content

Instantly share code, notes, and snippets.

@PickledDragon
Created May 10, 2021 20:52
Show Gist options
  • Save PickledDragon/4cca69a0fd20f2d8274f029c9abd0c4b to your computer and use it in GitHub Desktop.
Save PickledDragon/4cca69a0fd20f2d8274f029c9abd0c4b to your computer and use it in GitHub Desktop.
Sync a fork with its upsteam
1. Check what is the state - git remote -v
2. If the upstream is missing add it - git remote add upstream https://github.com/apache/camel
3. Fetch from upstream - git fetch upstream
4. Checkout local working copy master/main - git checkout master
5. Merge upstream master into local - git merge upstream/master
6. Push upstream - git push origin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment