安裝git flow
Windows
配合Cygwin使用。Cygwin之下的安裝非常簡單。執行如下指令即可:
wget -q -O - --no-check-certificate
https://github.com/nvie/gitflow/raw/develop/contrib/gitflow-installer.sh | bash
使用gitflow
git flow feature start feature1
git flow feature publish feature1
4.獲取Publish的Feature(切到develop分支,將feature內容合併到develop)git flow feature pull origin feature1
5.完成一個Featuregit flow feature finish feature1
6.開始一個Releasegit flow release start "1.0.0"
7.Publish一個Releasegit flow release publish "1.0.0"
8.發佈Release
git flow release finish "1.0.0"
git tags
1.0.0
$ git push origin develop
$ git checkout master
$ git push origin master
push 標籤信息$ git push --tags
git flow hotfix start VERSION
10.發佈一個Hotfixgit flow hotfix finish VERSION