简体   繁体   English

Gitflow:合并要开发的修补程序分支进行到母版的合并提交

[英]Gitflow: Merging hotfix branch to develop carries merge commits made to master

I'm on a project that's (sort of) following gitflow. 我在gitflow之后的项目中。 It has a master and develop branch and it's had some releases already (these were done from develop to master because we were doing it wrong, but I don't think it changes the question). 它有一个masterdevelop分支,并且已经有一些发行版(这些是从developmaster因为我们做错了,但是我认为这不会改变问题)。

Now there's a hotfix we need to make. 现在,我们需要制作一个修复程序。 We create a hotfix-x branch off of master , bump the version, make the change, and merge it to master . 我们从master创建一个hotfix-x分支,修改版本,进行更改,然后将其合并到master Now we try and merge the hotfix-x branch back to develop . 现在,我们尝试合并hotfix-x分支以进行develop But because the hotfix-x branch was created off of master , it includes all the merge commits from develop to master . 但是由于hotfix-x分支是在master创建的,因此它包含了从developmaster所有合并提交。

We don't want those merge commits in develop , do we? 我们不希望这些合并提交在develop ,对吗? How do we handle this? 我们该如何处理?

从评论来看,这只是gitflow的预期结果,因此我将继续并关闭它。

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

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