Lo sviluppo trunk-based è una strategia di branching in cui gli sviluppatori integrano piccole modifiche frequentemente in un unico ramo principale (trunk), utilizzando rami di breve durata (o eseguendo commit direttamente). È fortemente associato a CI/CD ad alte prestazioni perché massimizza l'integrazione continua.
Cos'è lo sviluppo trunk-based
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.
