fix with markdown syntax

This commit is contained in:
gelosie 2013-03-14 14:51:54 +08:00
parent b4bcdfff57
commit 4c8c67de2e

View File

@ -6,26 +6,35 @@ A cheatsheet on the usage of git flow, visit http://danielkummer.github.com/git-
GIT FLOW GIT FLOW
======== ========
Git extensions to provide high-level repository operations for Vincent Git extensions to provide high-level repository operations for Vincent Driessen's branching model. [Read more](http://nvie.com/posts/a-successful-git-branching-model/)
Driessen's branching model. — Read more:
http://nvie.com/posts/a-successful-git-branching-model/
INIT: INIT:
```
$ git flow init $ git flow init
```
TRACK DEVELOP REMOTELY ON GITHUB: #### TRACK DEVELOP REMOTELY ON GITHUB:
```
$ git push origin develop $ git push origin develop
```
**FEATURES:**
FEATURES:
Use to develop new features starting from the develop branch. Merge back into Use to develop new features starting from the develop branch. Merge back into
develop branch waiting for a reasonable amount of features to be there before develop branch waiting for a reasonable amount of features to be there before
declaring it a release. declaring it a release.
```
$ git flow feature $ git flow feature
$ git flow feature start <name> $ git flow feature start <name>
$ git flow feature finish <name> $ git flow feature finish <name>
```
```
usage: git flow feature [list] [-v] usage: git flow feature [list] [-v]
git flow feature start [-F] <name> [<base>] git flow feature start [-F] <name> [<base>]
git flow feature finish [-rFk] <name|nameprefix> git flow feature finish [-rFk] <name|nameprefix>
@ -35,33 +44,42 @@ usage: git flow feature [list] [-v]
git flow feature rebase [-i] [<name|nameprefix>] git flow feature rebase [-i] [<name|nameprefix>]
git flow feature checkout [<name|nameprefix>] git flow feature checkout [<name|nameprefix>]
git flow feature pull <remote> [<name>] git flow feature pull <remote> [<name>]
```
**RELEASES:**
RELEASES:
Use to group together latest development (features) add a few finishing touches Use to group together latest development (features) add a few finishing touches
if necessary and send to production. All last changes will merge back to master if necessary and send to production. All last changes will merge back to master
and develop so new features will start from current release. and develop so new features will start from current release.
```
$ git flow release $ git flow release
$ git flow release start <release> [<base>] $ git flow release start <release> [<base>]
$ git flow release finish <release> $ git flow release finish <release>
```
```
usage: git flow release [list] [-v] usage: git flow release [list] [-v]
git flow release start [-F] <version> git flow release start [-F] <version>
git flow release finish [-Fsumpk] <version> git flow release finish [-Fsumpk] <version>
git flow release publish <name> git flow release publish <name>
git flow release track <name> git flow release track <name>
```
**HOTFIXES:**
HOTFIXES:
Similar to releases but the hotfix branch starts off master to avoid unvoluntary Similar to releases but the hotfix branch starts off master to avoid unvoluntary
send to production of unwanted features that my be present in branches. The send to production of unwanted features that my be present in branches. The
quick fix must be used when an important bug arises in production which must be quick fix must be used when an important bug arises in production which must be
fixed and can't wait for other features to be ready. It merges back to master fixed and can't wait for other features to be ready. It merges back to master
and develop. and develop.
```
$ git flow hotfix $ git flow hotfix
$ git flow hotfix start <release> [<base>] $ git flow hotfix start <release> [<base>]
$ git flow hotfix finish <release> $ git flow hotfix finish <release>
```
```
usage: git flow hotfix [list] [-v] usage: git flow hotfix [list] [-v]
git flow hotfix start [-F] <version> [<base>] git flow hotfix start [-F] <version> [<base>]
git flow hotfix finish [-Fsumpk] <version> git flow hotfix finish [-Fsumpk] <version>
```