gitflow
gitflow
Bash implementation of the git-flow branching strategy. Automates feature branch creation, release tagging, hotfix merges and CHANGELOG generation.
Installation
bpkg install nvie/gitflow
Usage
# Initialize git-flow in current repo
gitflow init
# Start a new feature
gitflow feature start my-feature
# Finish and merge feature
gitflow feature finish my-feature
# Create a release
gitflow release start 1.2.0
gitflow release finish 1.2.0
# Emergency hotfix
gitflow hotfix start fix-critical-bug
gitflow hotfix finish fix-critical-bug
Branching model
| Branch | Purpose |
|---|---|
main |
Production-ready code |
develop |
Integration branch |
feature/* |
New features |
release/* |
Release preparation |
hotfix/* |
Production patches |