git tag
タグを操作するコマンド。
タグの作成、確認、変更、削除。
用例
- タグの一覧を表示
git tag
- 現在の最新コミットに対してタグ「tag01」を付ける(注釈付き)
git tag -a tag01 -m 'タグのコメント'
- 現在の最新コミットに対してタグ「tag01」を付ける(注釈無し)
git tag -a tag02 -m 'タグのコメント' 2df35c8
- タグ「tag01」を作成してリモートリポジトリに反映する
git tag tag01 git push origin tag01
- タグ「tag01」を削除
git tag -d tag01
- タグ「tag01」を削除してリモートリポジトリに反映
git tag -d tag01 git push -d origin tag01
- タグ「tag01」の情報を確認
git show tag01
- タグ名を「tag01」⇒「tag02」に変更
git tag tag02 tag01 git tag -d tag01
書式
git tag [options] <value>
公式によると以下の通り。
git tag [-a | -s | -u <keyid>] [-f] [-m <msg> | -F <file>] [-e] <tagname> [<commit> | <object>] git tag -d <tagname>… git tag [-n[<num>]] -l [--contains <commit>] [--no-contains <commit>] [--points-at <object>] [--column[=<options>] | --no-column] [--create-reflog] [--sort=<key>] [--format=<format>] [--[no-]merged [<commit>]] [<pattern>…] git tag -v [--format=<format>] <tagname>…
options
/x | xxx |
etc.
説明
タグを操作するコマンド。
タグの作成、確認、変更、削除できる。
関連
- xxx
参考リンク
- git tag - Gitコマンド虎の巻
- Git - git-tag Documentation
- xxxxxxxx?
- xxxxxxxx?
- xxxxxxxx?
- xxxxxxxx?
- xxxxxxxx?
- xxxxxxxx?
その他メモ
なにかあれば。