1
0

gitにてremoteのタグを削除する方法

Posted at

ローカルタグの確認

> git tag

ローカルタグの削除

-dを付けて削除する
rel-1.0.0のタグを削除

> git tag -d rel-1.0.0

再び、ローカルタグの確認をして削除されていることを確認。
リモートにタグをpushしている場合、リモートのタグが消えない。

リモートのタグを確認

> git ls-remote --tags

リモートのタグを削除

--delete

> git push origin --delete rel-1.0.0

または、コロン:をつかって削除

> git push origin :rel-1.0.0

リモートのタグを確認して削除されていることを確認。

1
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
1
0