Skill 2.1.1

Design a branch strategy, including trunk-based, feature branch, and release branch

Key Concepts

In trunk-based development, developers integrate small changes into main at least daily and use feature flags to hide incomplete work. Feature branches isolate one change, and they should stay short-lived, because long-lived branches cause difficult merges.

Release branches stabilize a version and support it after release. They are justified when several versions must be supported, and a fix should usually go to main first and be cherry-picked to the release branch.