Reputation: 163
We started using Gitflow for our branching model. But we are not sure how to use hotfixes. Do we have to use 1 hotfix branch for a hotfix release (meaning multiple fixes in 1 branch) or do we have to use 1 branch for every hotfix. So if there are 10 bugs, we have 10 hotfix branches.
Upvotes: 1
Views: 8600
Reputation: 492
In reference to this article by Atlassian, following points can be derived:
From these points it can be understood that all the bugs for a production release should be resolved in a single hotfix branch.
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.
Upvotes: 4