Trunk-based development ialah strategi branching di mana developer mengintegrasikan perubahan kecil dengan kerap ke dalam satu main branch (trunk), menggunakan branch yang sangat singkat (atau commit secara langsung). Ia sangat berkait dengan CI/CD berprestasi tinggi kerana ia memaksimumkan continuous integration.
Apa itu trunk-based development
Developers commit small, frequent changes to a SINGLE shared branch (trunk/main):
→ very SHORT-LIVED branches (merged within hours or a day) — or commit directly
→ integrate continuously (multiple times a day) into trunk
→ trunk is kept always RELEASABLE (working, deployable)
→ vs long-lived feature branches that diverge for days/weeks before merging.
