GIT删除本地tag和远程tag

以tag test为例,这个tag已经同步到远程,但是现在发现了一个问题,需要撤回该tag,git命令如下:

删除本地tag:

git tag -d test

删除远程tag:

git push origin :refs/tags/test