Git flow: a successful branching model
Summary
Vincent Driessen describes a strict Git model with long-lived main branches and short-lived branches for features, releases and bug fixes. An understandable model can improve coordination and still be too heavyweight for small teams.
Ideas
- master keeps released states, while develop integrates the upcoming version.
- Feature branches isolate unfinished work from the shared integration line.
- Release and hotfix branches make different stabilisation paths explicitly visible.
Recommendations
- Only use git flow if parallel releases justify its additional complexity.
- Prefer shorter branch lifetimes when continuous delivery matters more.
Insights
- Branching rules only work together with clear rules for tests, reviews and releases.
References
Found a mistake or have something to add? Get in touch.
Links to the original source and the Web Archive open in a new tab.