G---H // Release Branch
/
/
A---B---E---F--- // master
\\
\\
C---D--- // bug fix branch
Based on our particular ne
There is no real danger in using cherry-pick, especially if you don't plan on ever merging the release
branch into master
.
In general, you can prevent problems like these by basing bug fixes on commits that are included in all branches you want to merge the fix into. In the development of git itself, that is achieved by merging all bug fixes into the maint
branch (i.e. current stable series which only receives fixes) and then merging that into master
periodically. That way, the fix is everywhere and the merges are sane.