git-feature

Create and manage feature branches with standardized workflow

TLDR

Create feature branch
$ git feature [feature_name]
Create feature branch with remote tracking
$ git feature [feature_name] -r [origin]
Create feature branch from a specific start point
$ git feature [feature_name] --from [develop]
Finish feature branch (merge and delete)
$ git feature finish [feature_name]
Finish with squash merge
$ git feature finish --squash [feature_name]

SYNOPSIS

git feature [-a prefix] [-s separator] [-r [remote]] [--from startpoint] name_...git feature finish [--squash] name...

DESCRIPTION

git feature provides high-level commands for working with feature branches following a standardized naming convention. As part of the git-extras suite, it simplifies the common workflow of creating, developing, and completing feature work in separate branches.When creating a feature branch, the command automatically applies a "feature/" prefix to maintain consistent naming across the repository. The finish subcommand handles merging the feature back into the main development branch and cleaning up afterward, encapsulating multiple manual git operations into a single command.

PARAMETERS

-a PREFIX, --alias PREFIX

Use a custom branch prefix instead of "feature".
-s SEPARATOR, --separator SEPARATOR
Use a custom separator instead of "/".
-r [REMOTE], --remote [REMOTE]
Set up a remote tracking branch (defaults to origin).
--from STARTPOINT_
Create the feature branch from a specific commit or branch.
--squash
Perform a squash merge when finishing.

SUBCOMMANDS

finish

Merge feature branch into the current branch and delete it.

INSTALL

sudo apt install git
sudo dnf install git
sudo pacman -S git
sudo apk add git
sudo zypper install git
brew install git
nix profile install nixpkgs#git

SEE ALSO

git-create-branch(1), git-extras(1), git-branch(1), git-flow(1)