Trunk-based development एक branching strategy हो जहाँ developers छोटा परिवर्तनहरू बारम्बार एकै मुख्य branch (trunk) मा integrate गर्छन्, धेरै छोटो-अवधि को branches प्रयोग गरेर (वा सीधै commit गरेर)। यो उच्च-कार्यसम्पादन CI/CD सँग दृढ रूपमा जोडिएको छ किनभने यसले continuous integration लाई अधिकतम गर्छ।
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.
