تطوير الفرع الرئيسي هو إستراتيجية فروع حيث يقوم المطورون بدمج تغييرات صغيرة بشكل متكرر في فرع رئيسي واحد (trunk)، باستخدام فروع قصيرة الأجل جداً (أو الالتزام المباشر). يرتبط ارتباطاً قوياً بـ CI/CD عالي الأداء لأنه يزيد من التكامل المستمر.
ما هو تطوير الفرع الرئيسي
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.
