如何从远程存储库中删除标记

有没有可能使用 git 来取消标记一个已经推向上游的修订版。

事情是这样的:

 git tag 1.1
git push --tags origin master

糟糕,那应该是1.1版本的测试版

你能重新调整基地然后逆流而上吗? 我的团队还没有其他成员从原地取出。

41215 次浏览

You can delete a remote tag the same way that you delete a remote branch.

git push origin :1.1

And delete your local tag with:

git tag -d 1.1
git push --delete origin TAGNAME

Of course, you still have to delete the tag locally by running:

git tag -d TAGNAME

Simply, you can give the following command once you are in the local repository path (using cmd,code editor,IDE).

git push origin :your_tag_name_to_be_deleted