事實上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