The Real Fix, Once
sed -i 's/roast at 350F for 20 minutes\./roast at 350F for 45 minutes, or until internal temperature reaches 165F./' roast-chicken.md
git commit -am "Fix undercooked roast chicken time - food safety"
Cherry-Picking It to Each Real Branch
git switch print/spring-edition
git cherry-pick <fix-hash>
git switch print/summer-edition
git cherry-pick <fix-hash>
Each real application is a genuinely new commit — same real change, applied independently, with its own real hash and its own real parent on that specific branch.
The roast chicken recipe genuinely says 350F for 20 minutes — nowhere near enough to safely cook a whole chicken. It is not just on master; it already shipped to two real, separately published editions: print/spring-edition and print/summer-edition, each with their own real, independent edition notes.
This is not a case for merging a whole branch — each edition branch has its own real, separate content that should stay exactly as it is. git cherry-pick is the real, surgical tool: take exactly this one real commit's change and apply it, as a genuinely new commit, onto each branch that needs it.
git cherry-pick <commit>
Applies one real, specific commit's changes onto the current branch as a genuinely new commit. Confirmed directly in this lab: the exact same real fix, applied to two separate branches, produced two genuinely different commit hashes.
Takeaways
- git cherry-pick applies one real, specific commit's changes onto the current branch as a brand-new commit
- The same real change, cherry-picked to different branches, produces genuinely different commit hashes each time
- The original commit is never moved or removed — cherry-pick copies a real change, it does not relocate it
- This is the real, surgical alternative to merging when only one specific fix — not a whole branch's history — needs to travel