Created
April 30, 2020 12:35
-
-
Save bartwttewaall/8375aaf62e2258b95a1567f349735f23 to your computer and use it in GitHub Desktop.
Sync a private repository to a fork repository (used by Spicytrip)
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
I forked the repo to my own account and then cloned it to my PC | |
git clone https://github.com/bartwttewaall/spicytrip-web.git | |
Then I added a new upstream repository as specified in this article with the original repository url from wirelab | |
git remote add upstream https://github.com/wirelab/spicytrip-web.git | |
I then double checked the remotes with | |
git remote -v | |
and I now see both 2 origin and 2 upstream remotes. | |
I fetch all new commits and other information from the new upstream repo: | |
git fetch upstream | |
Then I make sure I'm in my own master branch (of the fork) and merge with the upstream: | |
git merge upstream/master | |
No merge issues should arise since I didn't work in the fork. So I can just push it in my fork: | |
git push |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment