Interview Prep/Git & GitHub/Branching Strategies and Releases

An eight-person team deploys several times a day. Which branching strategy do you recommend?

IntermediateScenarioBranching Strategies and Releases
Answer

Situation read → High deploy frequency favours short feedback loops and small integrations.

What I'd do →

  1. Trunk-based development: short-lived branches (under two days) merged to main through PRs.
  2. Every merge to main must be deployable; CI gates it.
  3. Hide unfinished work behind feature flags.
  4. Cut release branches or tags only when a release needs stabilising.

Why → Long-lived branches hide integration pain until late. Trunk-based moves that pain to every day when it is small.

Interview tip → DORA research links trunk-based development and frequent small merges with better delivery performance.

All Git & GitHub questions Roadmap: Git & GitHub

More on Branching Strategies and Releases