Main
Main
Develop
t
Feature - 45
Feature - 45 - fix review
Review
Fix Review
have your code on main as quickly as possible
Code review is painful (multiple-commit)
Code review doesn't handle async process
SVN Style
You are the only developer on the project !
Good for exploring looong feature
A lot of merge conflit to handle. The pike of work is on merge conflict.
Hard to release a bug fix in production
You have a popular open-source library with a announced release planning (Angular, Node.js, ...)
Main
Very simple
Deploy fixes is very simple
Close to production
Conflict to handle before merging features
One environnement per feature branch (octopus)
Production
Staging
1 branch per envrionement/release
Merge commit
Production
Staging
1 branch per envrionement/release
HOT FIX
CHERRY PICK
Handle multiple environnement
Conflict to handle before deploying
Conflict to handle when cherry-pick from production or other environnement
Master
Release 1.1.x branch
Small feature branch
Code review and merge
Cherry picked fix
Release 1.2
tag 1.1.1
tag 1.1.0
Bug fix
Master
Release 1.1 branch
Release 1.2 branch
tag 1.1.0
Merge pain
Bug fix