How do you delete a remote annotated tag?

This question already has an answer here:

  • How to delete a git remote tag? 18 answers

  • You can delete the tag locally like so

    git tag -d tag_name 
    

    And then to delete it from the remote, you do

    git push --tag remote_name :tag_name
    

    It won't break anything git specific but it will mess things up that rely on the tag being there (eg release management tools etc.)

    It won't affect subsequent commits since the tag itself just a reference and not an object.

    链接地址: http://www.djcxy.com/p/49274.html

    上一篇: 如何永久删除Github标签?

    下一篇: 你如何删除一个远程注释标签?