LoginSignup
4
4

More than 5 years have passed since last update.

Gitのタグ関連コマンド

Posted at

たまにしか使わないせいか、なかなか覚えられないのでまとめておきます。

◆タグを作成する
git tag -a <タグ名> -m '<コメント>'

◆過去の状態にタグを作成する
git tag -a <タグ名> -m '<コメント>' <コミットのハッシュ>

◆タグをpushする
git push origin <タグ名>

◆タグの削除
git tag -d <タグ名>

◆タグの検索(例:ABCで始まるタグを検索)
git tag -l "ABC*"

◆タグをチェックアウト
git checkout -b <ブランチ名> <タグ名>

4
4
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
4
4