[英]How do I update a github fork from the original repo?
I forked a github repo. 我分叉了一个github回购。 Now I want to update my fork to the current repo version. 现在我想将我的fork更新为当前的repo版本。 How can I do that? 我怎样才能做到这一点?
I had the same doubt and found the answer in the github help . 我有同样的疑问,并在github帮助中找到答案。
git remote add upstream git://url-to-original
git fetch upstream
git merge upstream/master
git push
upstream is the name I gave to the original repository. upstream是我给原始存储库的名称。
Hope it helps. 希望能帮助到你。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.