Trunk-based development ایک branching strategy ہے جہاں developers چھوٹی تبدیلیوں کو بار بار ایک single main branch (trunk) میں integrate کرتے ہیں، بہت short-lived branches استعمال کرتے ہوئے (یا براہ راست commit کرتے ہوئے)۔ یہ high-performing CI/CD کے ساتھ مضبوطی سے منسلک ہے کیونکہ یہ continuous integration کو maximize کرتا ہے۔
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.
