LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

git-feature

Create and manage feature branches with standardized workflow

TLDR

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

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.

SEE ALSO

Copied to clipboard
Kai