43. 44
release branch
• release branchの作成
$ git checkout -b release-1.2 develop
Switched to a new branch "release-1.2"
$ ./bump-version.sh 1.2 ← リリースのためのメタデータ処理
Files modified successfully, version bumped to 1.2.
$ git commit -a -m "Bumped version number to 1.2"
[release-1.2 74d9424] Bumped version number to 1.2
1 files changed, 1 insertions(+), 1 deletions(-)
44. 45
release branch
• release branchの終了
$ git checkout master
Switched to branch 'master'
$ git merge --no-ff release-1.2← --no-ffオプションでreleaseの存在を残す
Merge made by recursive.
(Summary of changes)
$ git tag -a 1.2
$ git checkout develop ← 必要に応じdevelopにmerge
$ git merge --no-ff release-1.2
$ git branch -d release-1.2 ← 最終的に削除
• 本当にリリースされても良い状態になったら終了する
• masterにマージ後tagを付ける