Interview Prep/Git & GitHub/Branching Strategies and Releases

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 →

  1. Prefer incremental migration: strangler pattern, adapters, and flags merged into main continuously.
  2. If a long-lived integration branch is unavoidable, merge main into it daily (automated), with rerere enabled.
  3. Have CI run the integration branch against the full suite every night.
  4. 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.

All Git & GitHub questions Roadmap: Git & GitHub

More on Branching Strategies and Releases