Git & CollaborationIntermediate
Trunk-Based Development
Pronunciationtrunk BAYST-ed dih-VEL-up-ment
Definition
A workflow where developers merge small changes into the main branch often, usually every day, and hide unfinished work behind feature flags instead of keeping long-lived branches.
Where you hear it
In teams that deploy many times a day, and in discussions about avoiding merge conflicts.
Examples
We merge to main every day with trunk-based development.
The unfinished screen is hidden behind a feature flag.
Small changes land on main every day, and unfinished screens stay behind a flag.
Common mistake
Calling a team trunk-based while everyone keeps branches that live for a week. The practice is small, frequent merges.
Don't confuse with
Feature branches are short-lived copies of the main line. Trunk-based development keeps almost all the work on one main line.
Keep exploring
More in Git & Collaboration