Zuruck zum Glossar
Git & Versionskontrolle

Trunk-Based Development

A source-control branching model where developers collaborate on code in a single branch called "trunk" (or main), avoiding long-lived feature branches.

Definition

In trunk-based development, developers commit directly to the main branch or use short-lived feature branches (lasting hours to a few days, not weeks). This model requires strong automated testing and CI/CD to maintain quality. It's favored by high-performing teams at Google, Facebook, and Microsoft because it enables true continuous integration and reduces merge conflicts.

Warum es wichtig ist

DORA research shows trunk-based development is a key predictor of high software delivery performance. It eliminates long-lived branch merge pain, ensures everyone works with the latest code, and supports continuous deployment. Feature flags enable releasing incomplete features safely.

Beispiel

A developer creates a branch for a 2-hour fix, commits frequently, ensures all tests pass, and merges to main the same day. Large features are hidden behind feature flags until complete.

Verwandte Begriffe

trunk-based developmentwhat is trunk-based developmentTBDtrunk based

Automatisieren Sie Code Review mit diffray

Multi-Agent KI-System fur Code Review. Findet automatisch Bugs, Sicherheitslucken und Architekturprobleme.