extra-git
Version:
Common utility commands for Git repositories.
81 lines (46 loc) • 1.56 kB
Plain Text
git-feature(1) -- Create/Merge feature branch
SYNOPSIS
git-feature [-a|--alias branchprefix] [-r|--remote [remotename]] <name>
git-feature [-a|--alias branch_prefix] finish [--squash] <name>
DESCRIPTION
Create/Merge the given feature branch
OPTIONS
<-a|--alias branch_prefix>
use branch_prefix instead of feature
<-r|--remote [remote_name]>
Setup a remote tracking branch using remotename. If remotename is not supplied, use origin by default.
<--from [start_point]>
Setup a start point when the branch created. If --from is not supplied, use the current branch by default.
<finish>
Merge and delete the feature branch.
<--squash>
Run a squash merge.
<name>
The name of the feature branch.
EXAMPLES
Start a new feature:
$ git feature dependencies
...
$ (feature/dependencies) git commit -m "Some changes"
Finish a feature with --no-ff merge:
$ (feature/dependencies) git checkout master
$ git feature finish dependencies
Finish a feature with --squash merge:
$ (feature/dependencies) git checkout master
$ git feature finish --squash dependencies
Publish a feature upstream:
$ git feature dependencies -r upstream
Use custom branch prefix:
$ git alias features "feature -a features"
$ git features dependencies
$ (features/dependencies) ...
$ (features/dependencies) git checkout master
$ git features finish dependencies
AUTHOR
Written by Jesús Espino <>
Modified by Mark Pitman <>
Modified by Carlos Prado <>
REPORTING BUGS
<>
SEE ALSO
<>