Interview Prep/Git & GitHub/Branching and workflow design

How do you handle hotfixes in a trunk-based setup?

IntermediateProductionBranching and workflow design
Answer

A hotfix is just a small PR to main that goes through the same pipeline but is flagged urgent, with a reduced reviewer requirement defined in advance (one approval from on-call owner). If main has unreleased risky changes, we deploy from a tag or a short-lived release/* cut from the last good deploy SHA and cherry-pick the fix, then make sure the fix is on main too. We never hand-edit production branches.

All Git & GitHub questions Roadmap: Git & GitHub

More on Branching and workflow design