Git flow命令

安装方法:

brew install git-flow

基本使用:

初始化:git flow init

本地新建feature:git flow feature start branchname   (注意:生成的分支号会带feature)

将本地feature PUSH到远程:git flow feature publish branchname

获取Publish的Feature:git flow feature pull origin branchname

完成一个Feature:git flow feature finish branchname

开始一个Release:git flow release start RELEASE [BASE]

Publish一个Release:git flow release publish RELEASE

发布Release:git flow release finish RELEASE,别忘了git push --tags

开始一个Hotfix:git flow hotfix start VERSION [BASENAME]

发布一个Hotfix:git flow hotfix finish VERSION

你可能感兴趣的:(T-Git)