How it works
Changes are tiny and merged quickly, sometimes straight to main with automated checks, sometimes through very short branches. Unfinished features are hidden behind feature flags, so incomplete code can ship without users seeing it. Releases are cut from the trunk, or deployed continuously.
What it demands
- A fast, trustworthy automated test suite and a CI pipeline that blocks broken merges.
- Feature flags and the discipline to remove them later.
- Small tasks and a team comfortable with frequent integration.
What it avoids
Painful merges after weeks apart, big-bang releases and the "integration phase" at the end of a project. Research on delivery performance links frequent integration with more stable releases.
When not to
Teams without tests, or with an open-source model where outside contributors send big changes, may prefer reviewed pull requests with longer-lived branches. Choose according to your safety net.
Questions, answered
Many teams still review through pairing or very small pull requests merged within hours.
Git Flow uses long-running develop and release branches; trunk-based avoids them.