Featured image of post 在 git 中刪除標籤

在 git 中刪除標籤

刪除本地標籤

  1. 使用 git tag 確認本地存在的標籤。
  2. 使用 git tag -d v0.1.0 刪除標籤。(在 v0.1.0 的部分指定您要刪除的標籤)

刪除遠端標籤

  1. 使用 git ls-remote --tags 確認遠端存在的標籤。
  2. 使用 git push origin --delete v0.1.0 刪除遠端存在的標籤。(在 v0.1.0 的部分指定您要刪除的標籤)

參考

gitでtagをリモートとローカルで削除する方法!

Licensed under CC BY-NC-SA 4.0
comments powered by Disqus
使用 Hugo 建立
主題 StackJimmy 設計