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.
More on Branching and workflow design
When is GitFlow still the right choice in 2026?IntermediateHow do you support multiple released versions (1.x, 2.x, 3.x) without chaos?AdvancedHow do feature flags change your merge and release process?IntermediateWhat branch naming and commit conventions do you enforce and how?BeginnerSquash, merge commit or rebase: what do you set as the allowed method on production repos and why?IntermediateDesign a branching and release process for a monorepo with 15 services deployed independently.Advanced