Originally published with interactive examples at lukiluki.me .
It is Friday afternoon and a production bug needs a patch. The development branch already contains unfinished work from three tasks. A merge produces conflicts across dozens of files, CI turns red and nobody trusts the release button. Which branching rules would make this situation easier to handle?
A Git workflow defines where changes start, how they are reviewed and how they reach the main branch and production. Trunk-based development favors frequent integration; feature branches organize review around a task; Gitflow separates development and release stages. The right choice depends on release needs and team coordination. Branch names alone provide no protection: review rules, reliable tests and a clear release process do the work.
Merksatz (Key takeaway):
Long-lived branches accumulate integration work.…