How to delete Github Tag forever?
This question already has an answer here:
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:
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.
上一篇: 撤消推送提交
下一篇: 如何永久删除Github标签?