首页 > 系统服务 > 详细

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

时间:2015-06-03 13:16:18      阅读:208      评论:0      收藏:0      [点我收藏+]

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下gitflow辅助工具安装和使用

原文:http://www.cnblogs.com/kidsitcn/p/4548678.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!