When we have bug/hotfix for the release candidate, we branch off of the RC branch and merge that fix back into the RC branch. We also merge (git merge
, not cherry-pick
) that fix into the master branch (red arrow):
Is this any better than simply using trunk-based development? (Better meaning less merge conflicts, less headaches, etc.)
Edit: To be clear, I want to compare between these two methodologies:
- branch off of RC; create the fix; do normal merge back into RC; then merge that fix into master
- branch off of master; create the fix; merge that into master; and also cherry-pick into the RC