Github fork同步

做到以下几个步骤:

  • 添加远程上游工程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/

原文地址:https://www.cnblogs.com/eva_sj/p/6172242.html