Interview Prep/Git & GitHub/Branching and workflow design

How would you choose a branching strategy for a team of 40 engineers shipping a SaaS product several times a day?

IntermediateProductionBranching and workflow design
Answer

Trunk-based development with short-lived branches (under a day or two), required CI, a merge queue and feature flags. In production we deploy from main, so there is no develop or release branch to keep in sync. The cost is investment in fast tests, flag hygiene and progressive delivery (canary, automated rollback). If CI takes 40 minutes, fix that before anything else, because slow CI is what forces teams back to long-lived branches.

All Git & GitHub questions Roadmap: Git & GitHub

More on Branching and workflow design