———————安裝
---------------
$ git clone --recursive git://github.com/nvie/gitflow.git
$ cd gitflow
$ [sudo] make install
---------------初始化---------------
建立本地
Master分支:git checkout -b master origin/master
git flow init
Feature branches? [feature/]
Release branches? [release/]
Hotfix branches? [hotfix/]
Support branches? [support/] bugfix
Version tag prefix? []
---------------基本配置---------------
git config --global color.ui true
---------------新功能開發---------------
開始
git flow feature start <NEWFEATURE>
結束
git flow feature finish <NEWFEATURE>
---------------線上BUG修改--------------
開始
git flow hotfix start
<hotfix20140220>
發佈分支到
Git Server以便協同處理
git flow hotfix publish <hotfix20140220>
Checkout到本地分支
git checkout –track origin/hotfix/
<hotfix20140220>
結束
git flow hotfix finish
<hotfix20140220>
刪除線上分支
git push origin :hotfix/hotfix140221
--------------------------------------------------------------------------------------------------------
其餘命令
查看遠程Git Server
庫版本
git branch –r
切換分支
git checkout NEWBRANCH
獲取遠程tag
$ git fetch origin tag <tagname]]>
本地tab
點推送到遠程
$ git push --tags