事实上Git 的推送和删除远程标签命令是相同的,删除操做实际上就是推送空的源标签refs:
git push origin 标签名
至关于
git push origin refs/tags/源标签名:refs/tags/目的标签名git
git push 文档中有解释:.net
tag <<tag>> means the same as refs/tags/<tag>:refs/tags/<tag>.
Pushing an empty <src> allows you to delete the <dst> ref from the remote repository.blog
推送标签:rem
[plain] view plain copy文档
删除本地标签:get
[plain] view plain copyit
删除远程标签:io
[plain] view plain copy推送
其余本地操做:view
[plain] view plain copy