简体   繁体   中英

how to use a gitflow hotfix branch

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.

In reference to this article by Atlassian , following points can be derived:

  • Hotfix branches are created for bugs in production releases.
  • This branch is used as patch for next release cycle.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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