Trunk-based development एक branching strategy है जहाँ developers छोटे परिवर्तनों को एक single main 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.
