0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Gitflowでリリースするコマンド操作めも

Posted at

たまーにGitflowでリリースする時に、どうだっけか…となることがあるのでメモ。

事前準備

  • (場合によりけり)該当のリポジトリをcloneしてきたディレクトリ内でgit flow initを叩く
    clone(もしくはプロジェクト立ち上げ)後に初めてgit flowコマンドを叩きたい場合は必要。

  • developブランチにリリースしたい内容をマージする

いざリリース

  1. developブランチをチェックアウト
    git checkout develop
    
  2. リリース開始
    git flow release start ${リリースバージョン}
    
    リリースバージョンはv1.7.12などよしなにつける。
    これがリリースタグにもなる。
    プロジェクトのバージョニングルールを確認してつける。
  3. リリース終了
    git flow release finish '${リリースバージョン}'
    
    このとき、リリースコメントとかタグコメントを聞かれるので適切に入力する。
    どういう内容を書くかはプロジェクトのルールとか一般的な作法に従う。
    特にタグコメントを忘れるとタグのコミットができないようで、うまく終了できないのでかならず入力する。(忘れてももっかいコマンド叩けばOK)
  4. タグのプッシュ
    git push origin ${リリースバージョン}
    
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?