Interview Prep/CI/CD/Fundamentals and Pipeline Design

How does your branching strategy affect CI? Compare trunk-based development with GitFlow.

IntermediateConceptFundamentals and Pipeline Design
Answer

CI only works if integration is frequent. Trunk-based development uses short-lived branches (hours to a day) merged into main with feature flags hiding unfinished work. It fits continuous delivery best and gives the smallest merge conflicts.

GitFlow uses long-lived develop, release/* and hotfix/* branches. It adds merge overhead and delays integration, so a "CI" build on develop can hide weeks of divergence. It still suits products with versioned, supported releases (installed software, mobile apps).

For most SaaS teams, trunk-based with PR checks plus a merge queue is the faster and safer choice.

All CI/CD questions Roadmap: CI/CD fundamentals

More on Fundamentals and Pipeline Design