简体   繁体   English

合并git原始分支母版到fork母版

[英]merge git original branch master into fork master

I've code my webapp client. 我已经为我的webapp客户端编写了代码。 I've 2 branch: master to production and develop to test and staging. 我有2个分支:精通生产,开发测试和登台。 Now I have to separate my project into 2 independent version, however some bugs of original version remains into each repo (original and fatch), so I will make some edit double time. 现在,我必须将项目分为2个独立版本,但是每个回购中仍会保留一些原始版本的错误(原始错误),因此我将进行两次编辑。 There is any way to marge master branch of original repo into master branch of forked repo? 有什么方法可以将原始存储库的主分支嫁接到分叉存储库的主分支上? Or have you a more gently solution for this use case? 还是您对此用例有一个更温和的解决方案?

Thanks 谢谢

Yes, you can do it using Github interface. 是的,您可以使用Github界面进行操作。 You should go to the original project (the one you've forked) and click in the New Pull Request button. 您应该转到原始项目(已分叉的项目),然后单击“ 新建请求请求”按钮。 Then you should click in the compare across forks link that appears under the Compare changes title. 然后,您应该点击“比较更改”标题下显示的“ 跨叉比较”链接。 After doing that you should be able to select you fork as the origin of the new PR. 这样做之后,您应该能够选择fork作为新PR的来源。

Here is a more detailed guide: https://help.github.com/articles/creating-a-pull-request-from-a-fork/ 这是更详细的指南: https : //help.github.com/articles/creating-a-pull-request-from-a-fork/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM