Trunk-based development on haarautumisstrategia, jossa kehittäjät integroivat pieniä muutoksia usein yhteen pääpuuhun (trunk), käyttäen hyvin lyhytikäisiä haaroja (tai committoimalla suoraan). Se liittyy vahvasti korkealaatuiseen CI/CD:hen, koska se maksimoi jatkuvan integraation.
Mikä trunk-based development on
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.
