Skip to content

Commit f6f4599

Browse files
committed
update git-feature docs
1 parent 38c7b03 commit f6f4599

File tree

4 files changed

+170
-12
lines changed

4 files changed

+170
-12
lines changed

Commands.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Sets up the `gh-pages` branch. (See [GitHub Pages](http://pages.github.com/) do
7272

7373
## git feature|refactor|bug|chore
7474

75-
Create the given feature, refactor, bug or chore branch `name`:
75+
Create/Merge the given feature, refactor, bug or chore branch `name`:
7676

7777
```bash
7878
$ git feature dependencies

man/git-feature.1

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
11
.\" generated with Ronn/v0.7.3
22
.\" http://github.com/rtomayko/ronn/tree/0.7.3
33
.
4-
.TH "GIT\-FEATURE" "1" "April 2015" "" ""
4+
.TH "GIT\-FEATURE" "1" "September 2015" "" ""
55
.
66
.SH "NAME"
7-
\fBgit\-feature\fR \- Create feature branch
7+
\fBgit\-feature\fR \- Create/Merge feature branch
88
.
99
.SH "SYNOPSIS"
10-
\fBgit\-feature\fR [finish] <name>
10+
\fBgit\-feature\fR [\-a|\-\-alias branch_prefix] [finish] <name>
1111
.
1212
.SH "DESCRIPTION"
13-
Create the given feature branch
13+
Create/Merge the given feature branch
1414
.
1515
.SH "OPTIONS"
16+
<\-a|\-\-alias branch_prefix>
17+
.
18+
.P
19+
use \fBbranch_prefix\fR instead of \fBfeature\fR
20+
.
21+
.P
1622
<finish>
1723
.
1824
.P
@@ -30,10 +36,16 @@ The name of the feature branch\.
3036

3137
$ git feature dependencies
3238
\.\.\.
33-
$ git commit \-m "Some changes"
39+
$ (feature/dependencies) git commit \-m "Some changes"
3440
\.\.\.
35-
$ git checkout master
41+
$ (feature/dependencies) git checkout master
3642
$ git feature finish dependencies
43+
44+
$ git alias features "feature \-a features"
45+
$ git features dependencies
46+
$ (features/dependencies) \.\.\.
47+
$ (features/dependencies) git checkout master
48+
$ git features finish dependencies
3749
.
3850
.fi
3951
.

man/git-feature.1.html

Lines changed: 136 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/git-feature.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
1-
git-feature(1) -- Create feature branch
1+
git-feature(1) -- Create/Merge feature branch
22
=======================================
33

44
## SYNOPSIS
55

6-
`git-feature` [finish] &lt;name&gt;
6+
`git-feature` [-a|--alias branch_prefix] [finish] &lt;name&gt;
77

88
## DESCRIPTION
99

10-
Create the given feature branch
10+
Create/Merge the given feature branch
1111

1212
## OPTIONS
1313

14+
&lt;-a|--alias branch_prefix&gt;
15+
16+
use `branch_prefix` instead of `feature`
17+
1418
&lt;finish&gt;
1519

1620
Merge and delete the feature branch.
@@ -23,11 +27,17 @@ git-feature(1) -- Create feature branch
2327

2428
$ git feature dependencies
2529
...
26-
$ git commit -m "Some changes"
30+
$ (feature/dependencies) git commit -m "Some changes"
2731
...
28-
$ git checkout master
32+
$ (feature/dependencies) git checkout master
2933
$ git feature finish dependencies
3034

35+
$ git alias features "feature -a features"
36+
$ git features dependencies
37+
$ (features/dependencies) ...
38+
$ (features/dependencies) git checkout master
39+
$ git features finish dependencies
40+
3141
## AUTHOR
3242

3343
Written by Jesús Espino &lt;<[email protected]>&gt;

0 commit comments

Comments
 (0)