Github fork同步

来源:互联网 发布:ubuntu 阿里云 dns设置 编辑:程序博客网 时间:2024/05/12 23:04

做到以下几个步骤:

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

0 0
原创粉丝点击