要在centos下面使用git flow命令,只需要安装gitflow.noarch
sudo yum install gitflow.noarch
之后执行命令 git-flow,可以看到如下所示
以后可以使用git flow的方式进行执行。
关于git flow的使用,有如下几个关键命令:
初始化: git flow init //一路回车即可
开始feature项目: git flow feature start proj_feature_test //在本地建分支 proj_feature_test
结束feature项目: git flow feature finish proj_feature_test //合并到本地develop分支,并删除本地 proj_feature_test分支