做到以下几个步骤:
- 添加远程上游工程repository。
git remote add upstream git@github.com:*.git
git remote -v
- 将上游工程代码合并到本地代码。
git fetch upstream
git checkout master
git merge upstream/master
- 将本地代码提交到自己的repository
git push origin master
参考:
https://help.github.com/articles/syncing-a-fork/