Imagine a git repository that is structured as follows:
- Main branch - development for the next major release is done here
- Release branches - development on patches for releases is done here
- Hotfix branches - hotfix branches are branched off from release branches to fix release bugs for patches.
Main --------------------------------> \ Release o--------o \ / Hotfix o--
So hotfixes are developed off the Release branch, and in order to bring hotfixes into my Main branch, my previous pattern has been to use cherry pick merges. Now I'm questioning whether this is appropriate.
Would using regular merge to merge the Hotfix branch into the Main branch be more appropriate here? Are there any "gotchas" in either scenario?