A six-month platform migration must touch hundreds of files while the product keeps shipping.
AdvancedScenarioBranching Strategies and Releases
Answer
Situation read → A six-month branch would be unmergeable.
What I'd do →
- Prefer incremental migration: strangler pattern, adapters, and flags merged into
maincontinuously. - If a long-lived integration branch is unavoidable, merge
maininto it daily (automated), withrerereenabled. - Have CI run the integration branch against the full suite every night.
- Land the final switch as a small PR.
Why → Divergence is the enemy. Daily sync keeps the final merge boring.
Interview tip → "Make the change easy, then make the easy change": branch by abstraction.
More on Branching Strategies and Releases
An eight-person team deploys several times a day. Which branching strategy do you recommend?IntermediateWhen would you choose GitFlow over trunk-based development?IntermediateIn trunk-based development, a feature will take three weeks. How do you merge it daily without exposing it?IntermediateYou are cutting a release. How do you manage the release branch and late fixes?IntermediateShould releases use lightweight or annotated tags?BeginnerA release tag was placed on the wrong commit and has been published. What do you do?Intermediate