branch - git分支合并
天蓬老师
天蓬老师 2017-05-02 09:41:03
0
2
559

如图所示,有两个新功能,分别以branch 1branch 2实现,并依次合并到develop分支上。

那么问题来了,当我想要把develop合并到master,并发布生产环境时,突然发现branch 1存在严重问题,不能在此版本上线,而branch 2是基于已经mergebranch 1develop分支开发的,也就是说branch 2的代码中已经包含了branch 1的代码。

请问这样的应用场景,只把branch 2修改的代码mergemaster的最佳实践?

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all (2)
Peter_Zhu

The principle of git is to track each modified file. You can use git log to check the different contents of the specific submission of the version. After modification, try to request merge again.

    曾经蜡笔没有小新

    In principle, you should use hotfix on the master to modify the problem of branch1. After the repair is completed, merge the hotfix back to master and develop, and then merge develop back to branch2
    You can refer to this process http://danielkummer.github.io ...

      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!