-
準備
-
新規リポジトリ
- cd spam
- git flow init
- git remote add origin spam.git
- git push -u origin master
-
既存リポジトリ
- git clone spam.git
- cd spam
- git flow init
-
基本コマンド
-
git-flow
- git flow feature
-
git
- git diff
- git add FILE
- git commit -m "message"
- git log
- git branch
- git checkout
- git tag
- git push
-
マスターブランチ
- master
-
開発ブランチ
- develop
-
フィーチャーブランチ
- git flow feature start spam
- git commit -m "Add some feature."
- git flow feature finish spam
- git push origin develop
-
リリースブランチ
- git flow release start 1.0.0
- git commit -m "Update README for release 1.0.0."
- git flow release finish 1.0.0
- git push
- git push origin 1.0.0
-
ホットフィックスブランチ
- git flow hotfix start 1.0.1-somefix
- git commit -m "Fix something"
- git flow hotfix finish 1.0.1-somefix
- git push
- git push origin 1.0.1-somefix
- メインブランチ
- サポートブランチ