how to sync forked repo on github
after fork a project on github, you may also need to sync your repo with the original repo you forked from, how to do that?
- add upstreamif you found you add the wrong upstream, you can remove it
1
git remote add upstream git@github.intuit.com:xwei/iusclient.git
then add the right upstream1
git remote rm upstream
1
git remote add upstream git@github.intuit.com:xsbgoii/iusclient.git
- then fetch upstream
1
git fetch upstream
- merge the upstream with your forked reponotice I forked the
1
git merge upstream/develop
develop
branch