1、https://raw.githubusercontent.com/petervanderdoes/gitflow-avh/develop/contrib/gitflow-installer.sh
把这个复制出来写到文件里
2、执行 ./gitflow.sh install stable 即可
3、进入项目目录git flow init 初始化环境
$ git flow init # 全部回车
Which branch should be used for bringing forth production releases?
- develop
- master
Branch name for production releases: [master]
Which branch should be used for integration of the "next release"?
- develop
Branch name for "next release" development: [develop]
How to name your supporting branch prefixes?
Feature branches? [feature/]
Bugfix branches? [bugfix/]
Release branches? [release/]
Hotfix branches? [hotfix/]
Support branches? [support/]
Version tag prefix? []
Hooks and filters directory? [C:/testzee/nodejs/Koala/.git/hooks]
原文地址:http://jinliang.blog.51cto.com/8981814/1944676