Trunk-based development is a source-control branching model where developers collaborate on code in a single branch called the "trunk" or "mainline." This model emphasizes continuous integration and frequent merging of code changes into the trunk to ensure that the codebase remains in a deployable state.
Image Source: Trunk-Based Development
- Single Trunk Branch: All developers work on a single main branch (often called
main
ortrunk
).