我如何合并父叉? [英] How do I merge a parent fork?
本文介绍了我如何合并父叉?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在github上分出了一个项目,从那时起,原来的所有者对它进行了修改。
谢谢!
解决方案
首先为上游存储库设置一个远程服务器,如果您尚未安装: 上游git://github.com / ...
然后获取远程内容并从中合并(假设你在fork的相应的 master
分支上):
git fetch
git merge upstream / master
I forked a project on github, since then the original owner made changes to it. How do I pull down those changes and merge them into my fork?
Thanks!
解决方案
First set up a remote for the upstream repository, if you haven't already:
git remote add upstream git://github.com/...
Then fetch the remote contents and merge from it (assuming you're on the corresponding master
branch of your fork):
git fetch
git merge upstream/master
这篇关于我如何合并父叉?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文