How to delete Github Tag forever?

This question already has an answer here:

  • How to delete a git remote tag? 18 answers

  • From the local git repository, do this:

    git fetch
    git tags
    git tag -d {tag-name}
    git push origin :refs/tags/{tag-name}
    

    Now go to Github.com and refresh, they disappear.


    Mahmoud's answer is confirmed by:

  • "How to Delete a Tag on GitHub" (Cory LaViska)
  • GitHub "Working with Tags"
  • Releases are also lightweight Git tags, with some extra awesome features to help you release software.

    So On GitHub side, you don't actually delete an annotated tag, only a lightweight one.
    Pushing an empty reference to a GitHub tag will actually delete it from the GitHub repo.

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

    上一篇: 撤消推送提交

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