I noticed this question about rebase vs merge, but none of the answers there really gave me a solid feeling of knowing what to do about my own situation.
The scenario. Lets say there are 2 branches:
master
: branch currently living on productiondevelop
: non deployed branch developers do feature work off of
If a change/hotfix if applied directly to master
in order to resolve a critical production issue, what is the best way to get the develop
branch synched back up with this change? What are the tradeoffs between:
- merging
master
intodevelop
(squashing into 1 commit) - rebasing
develop
ontomaster
Does the answer to this question depend on the number/extent of the hotfix applied? (1 hotfix commit vs 15 "hotfix" commits).