linux下gitflow辅助工具安装和使用

gitflow是一个确保nvie推荐的git branch分支策略最佳模型得到有效实施的辅助工具。它作为git的一个子命令而存在。 http://nvie.com/posts/a-successful-git-branching-model/

linux下安装非常简单 https://github.com/nvie/gitflow/wiki/Linux

$ yum install gitflow

安装完成以后git flow xxx就可以使用了。

git flow init [-d]

list,start,finish一个feature:

git flow feature

git flow feature start <name> [<base>]

git flow feature finish <name>

注意,For feature branches, the <base> arg must be a commit on develop.

push/pull一个feature branch到remote

git flow feature publish <name>

git flow feature pull <remote> <name>

list,start,finish一个release branch:

git flow release

git flow release start <release> [<base>]

git flow release finish <release>

对于release branch来说,base一定是一个develop上的commit

list,start,finish一个hotfix:

git flow hotfix

git flow hotfix start <release> [<base>]

git flow hotfix finish <release>

对于hotfix branch来说,base需要是一个master上的commit

list,start support branch:

git flow support

git flow support start <release> <base>

 

你可能感兴趣的:(linux)