Git Flow

Feature, release, and hotfix branching model

Git Flow is a branching model that defines strict rules for how branches are created, merged, and named.

Git Flow uses five branch types: main, develop, feature, release, and hotfix.

main
develop
feature
release
hotfix
v1.0
main
dev
develop
Terminal
# Git Flow branch types:
#
# main     - production-ready code
# develop  - integration branch
# feature/ - new features
# release/ - release preparation
# hotfix/  - urgent production fixes

$ git flow init