LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

git-flow

High-level branching model workflow commands

TLDR

Initialize git flow
$ git flow init
copy
Initialize with default branch names
$ git flow init -d
copy
Start feature branch
$ git flow feature start [feature-name]
copy
Finish feature
$ git flow feature finish [feature-name]
copy
Start release
$ git flow release start [version]
copy
Finish release
$ git flow release finish [version]
copy
Publish a feature branch to remote
$ git flow feature publish [feature-name]
copy
Start a hotfix
$ git flow hotfix start [version]
copy
Finish a hotfix
$ git flow hotfix finish [version]
copy

SYNOPSIS

git flow subcommand [action] [name]

DESCRIPTION

git flow implements Vincent Driessen's branching model, providing high-level commands for managing feature, release, and hotfix branches with consistent naming and merge strategies.The workflow uses develop as the integration branch and main/master for releases. Features branch from develop, releases prepare for production, and hotfixes go directly to main. This standardizes team branching workflows with clear conventions.

PARAMETERS

init

Initialize repository for git-flow.
feature ACTION NAME
Manage feature branches.
release ACTION VERSION
Manage release branches.
hotfix ACTION NAME
Manage hotfix branches.
support ACTION NAME
Manage support branches.
start
Begin a new branch.
finish
Complete and merge branch.
publish
Push branch to the remote repository.
track
Track a remote branch locally.
pull
Pull a remote branch (deprecated in favor of track).
delete
Delete a finished branch.
list
List existing branches of a given type.
-d
Use default branch naming conventions during init.
--help
Display help information.

CAVEATS

Opinionated workflow. May not suit all projects. Requires initialization per repo.

HISTORY

git flow was created by Vincent Driessen in 2010 based on his successful git branching model blog post.

SEE ALSO

Copied to clipboard
Kai