LinuxCommandLibrary

git-flow

High-level branching model workflow commands

TLDR

Initialize git flow

$ git flow init
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

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.
--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

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community