The gitflow tool implements the Gitflow workflow, providing structured commands for managing features, releases, and hotfixes.
Initialization
Run git flow init to configure your repository. You will be prompted to define your production branch (e.g., master) and your integration/development branch (e.g., develop).
Feature Management
git flow feature start <name>: Starts a new feature branch.git flow feature finish <name>: Finishes a feature branch (merges it into the integration branch).git flow feature delete <name>: Deletes a feature branch.git flow feature publish <name>: Publishes a feature branch to the remote.git flow feature pull remote <name>: Pulls a feature branch from the remote.
Release Management
git flow release start <name>: Starts a new release cycle.git flow release finish <name>: Finishes the release (merges into production and integration branches).git flow release delete <name>: Deletes a release branch.
Hotfix and Support
git flow hotfix start <name>: Starts a hotfix branch for urgent production fixes.git flow hotfix finish <name>: Finishes the hotfix.git flow support: Manages support branches.
# Initialize gitflow
$ git flow init
# Start and finish a feature
$ git flow feature start awesome-feature
$ git flow feature finish awesome-feature
# Start and finish a hotfix
$ git flow hotfix start awesome-release
$ git flow hotfix finish awesome-release