Created
May 10, 2021 20:52
-
-
Save PickledDragon/4cca69a0fd20f2d8274f029c9abd0c4b to your computer and use it in GitHub Desktop.
Sync a fork with its upsteam
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
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