Why it matters
Wrong strategy slows teams. Understanding options guides selection.
Advertisement
The architecture
Gitflow: main (releases), develop, feature branches, release branches, hotfix.
GitHub Flow: main + short-lived feature branches. PR merges to main.
Trunk-based: everyone on main; feature flags hide incomplete work.
Advertisement
How it works end to end
Choice: Gitflow for versioned releases (libraries, packaged software). GitHub Flow for continuous deploy. Trunk for high-throughput.
PR review: consistent across strategies. Small PRs preferred.
Merge vs rebase: preserves history vs clean linear.