LoginSignup
0
0

More than 1 year has passed since last update.

git tagの基本コマンド

Last updated at Posted at 2020-09-29

基本コマンド

既存のタグ(ローカル)一覧を確認
git tag
既存のタグ(リモート)一覧を確認
git ls-remote --tags
現在のコミットにタグ名をつける
git tag タグ名
リモートリポジトリへプッシュ
git push origin <tag-name> #単体タグ
git push --tag #全タグ
タグの削除(ローカル)
# ローカル

git tag -d tag名
git tag -D tag名 #強制削除

# リモート

git push origin --delete タグ名
リモートのタグをローカルでチェックアウト
git checkout -b ブランチ名 refs/tags/タグ名
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