如何使用 gitflow hotfix 分支
how to use a gitflow hotfix branch
我们开始使用 Gitflow 作为我们的分支模型。
但我们不确定如何使用修补程序。
我们是否必须为一个修补程序版本使用 1 个修补程序分支(意味着 1 个分支中的多个修补程序),或者我们是否必须为每个修补程序使用 1 个分支。
所以如果有 10 个错误,我们就有 10 个修补程序分支。
参考Atlassian这篇文章,可以得出以下几点:
- 修补程序 分支是为生产版本中的错误创建的。
- 此分支用作下一个发布周期的补丁。
从这些点可以理解,生产版本的所有错误 应该在单个修补程序分支中解决。
NOTE: Care should be taken that after all the production bugs are resolved, the updated code is merged back to the develop and master branch. After merge make sure the hotfix branch is deleted. The develop branch can then be used to generate next release in the release cycle.
我们开始使用 Gitflow 作为我们的分支模型。 但我们不确定如何使用修补程序。 我们是否必须为一个修补程序版本使用 1 个修补程序分支(意味着 1 个分支中的多个修补程序),或者我们是否必须为每个修补程序使用 1 个分支。 所以如果有 10 个错误,我们就有 10 个修补程序分支。
参考Atlassian这篇文章,可以得出以下几点:
- 修补程序 分支是为生产版本中的错误创建的。
- 此分支用作下一个发布周期的补丁。
从这些点可以理解,生产版本的所有错误 应该在单个修补程序分支中解决。
NOTE: Care should be taken that after all the production bugs are resolved, the updated code is merged back to the develop and master branch. After merge make sure the hotfix branch is deleted. The develop branch can then be used to generate next release in the release cycle.