标签:
事实上Git 的推送和删除远程标签命令是相同的,删除操作实际上就是推送空的源标签refs:
git push origin 标签名
相当于
git push origin refs/tags/源标签名:refs/tags/目的标签名
git push 文档中有解释:
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. |
推送标签:
删除本地标签:
删除远程标签:
其他本地操作:
参考文档:
http://nathanhoad.net/how-to-delete-a-remote-git-tag
http://linux.die.net/man/1/git-push
转自:
http://ihacklog.com/post/how-to-push-and-delete-a-remote-git-tag.html
标签:
原文地址:http://www.cnblogs.com/rabtor/p/4252258.html