git tag new old


git tag -d old


git push origin :refs/tags/old


git push --tags

new即新的tag名

old即旧的tag名

push命令中的冒号从远程存储库中删除标记。 如果你不这样做,当你拖动时,git将在你的机器上创建旧标签。

最后,确保其他用户删除已经删除的标记。 请告诉 them(co-workers) 运行以下命令:

git pull --prune --tags