Lessons in this course (10)

7. Branching strategies — GitFlow, GitHub Flow, trunk-based

IntermediateMediumLesson 7 of 10
StrategyBranchesFits
GitFlowmain (releases), develop, feature/*, release/*, hotfix/*Scheduled versioned releases (installed software, mobile)
GitHub Flowmain + short-lived feature branches, deploy after mergeWeb apps with continuous delivery
Trunk-basedEveryone merges to main at least daily; feature flags hide unfinished work; release branches optionalHigh-performing CI/CD teams (DORA research)
Release branchesmain + release/2026.10 cut for stabilisationEnterprise apps with UAT cycles

Hotfix in GitFlow: branch from main → fix → merge to main (tag) and develop.