Trunk-based development adalah strategi branching di mana developer mengintegrasikan perubahan kecil secara frequent ke satu branch utama (trunk), menggunakan branch yang sangat short-lived (atau commit langsung). Ini sangat terkait dengan CI/CD berkinerja tinggi karena memaksimalkan 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.
