Hotfix: A Permanent Record Matters
git merge --no-ff hotfix/soup-serving-typo -m "Merge pull request: hotfix soup serving typo"
A production fix deserves a real, searchable marker in history — exactly when it landed, easy to find later if the fix itself ever needs revisiting.
Documentation: No Ceremony Needed
git merge docs/update-readme
A plain merge, genuinely fast-forwarding — a README update carries no real risk and needs no permanent "this was reviewed and merged" marker.
Experimental Work: Only the Result Matters
git merge --squash experiment/spicy-mocktails
git commit -m "Add spicy ginger mocktail recipe"
Real, messy exploration ("wip", "try ginger beer") collapses into one clean commit — nobody will ever want to bisect into which specific attempt worked.
The Real Question Behind Every Choice
Not "what type of branch is this," but: will a future reader want a permanent record of the integration itself? Does the path to the result matter, or only the result? Answering both honestly, every time, is what real merge-strategy judgment actually is.
A hotfix, a documentation update, and an experimental idea all need merging today — each one genuinely different in what it is and what future readers will want from its history. This lesson performs all three with a real, deliberately different strategy each, then reasons through a fourth scenario (a normal feature) using everything learned across this entire block.
This is not about memorizing which strategy goes with which label — it is about the real question behind each choice: will anyone want a permanent record of this integration? Does the history leading up to it matter, or only the final result?
Merge strategy as a real, deliberate choice
Fast-forward, --no-ff, and --squash are not arbitrary settings — each answers a real question about what future readers of history will want: nothing extra, a permanent integration marker, or only the final clean result. Confirmed directly across this entire block: three genuinely different real scenarios, three deliberately different real outcomes.
Takeaways
- A hotfix genuinely benefits from --no-ff — a permanent, searchable record for something that may need revisiting
- Low-risk changes like documentation can fast-forward freely — no ceremony adds real value there
- Messy experimental work is a real, legitimate candidate for --squash — only the final result matters
- The real skill is asking two questions every time: does the integration point matter, and does the path to the result matter?