かもメモ

自分の落ちた落とし穴に何度も落ちる人のメモ帳

Git タグのいろいろメモ

TAG の作成

$ git tag -a <tag_name>
# コメント付きで作成
$ git tag -a <tag_name> -m 'comment'

TAG の確認

$ git tag

TAG をリモートに push する

$ git push origin <tag_name>
# 一度にpush
$ git push origin --tags

TAG の削除

$ git tag -d <tag_name>
# リモートのタグを削除
$ git push origin :<tag_name>
# 又は
$ git push --delete origin <tag_name> 

GUI で触ってるとすぐ忘れる…


[参考]