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 3 years have passed since last update.

Git 現在のブランチのHEADにタグを貼りリモートリポジトリに反映するまで

Posted at

目的

  • 現在のブランチのHEADにタグを貼ってリモートリポジトリに反映するまでの方法と流れをメモ的に記載する

方法

  1. 下記コマンドを実行して現在のブランチのHEADコミットにタグを貼る。

    $ git tag -m '任意のタグのコメント' タグ名
    
  2. 例えばタグのコメントを「初回リリース」としてタグ名を「v.1.0.0」としたいときは下記のコマンドを実行する。

    $ git tag -m '初回リリース' v.1.0.0
    
  3. タグをリモートリポジトリに反映する際は下記コマンドを実行する。(リモートブランチ名がoriginとして登録されている場合)

    $ 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?