1 基礎命令:git
- 初始化: git flow init
- 開始新Feature: git flow feature start MYFEATURE
- Publish一個Feature(也就是push到遠程): git flow feature publish MYFEATURE
- 獲取Publish的Feature: git flow feature pull origin MYFEATURE
- 完成一個Feature: git flow feature finish MYFEATURE
- 開始一個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
![image image](http://static.javashuo.com/static/loading.gif)
2 Git Flow
2.1 用途
大型團隊項目中高效快速管理分支(初始化/新建/結束 分支)ubuntu
2.2 圖示
![gitflow](http://static.javashuo.com/static/loading.gif)
2.3 七條指令
先看參考連接2,而後結合上圖,7條指令幹了什麼一目瞭然。
- git flow init
- git flow feature start xxx
- git flow feature finish xxx
- git flow release start 0.1.xx
- git flow release finish 0.1.xx
- git flow hotfix start xxx
- git flow hotfix finish xxxui
3 UI界面
知道了基本命令的用途後,能夠結合git相關的UI界面來快速上手,如git gui和gitk。spa
ubuntu能夠用非商用免費版的SmartGit,一樣支持git-flow。blog