git在push时,出现“hint: Updates were rejected because the tag already exists in the remote.” 有tag标签显示已经存在
原因:本地标签tag和远程tag出现不一致
可以通过执行以下命令:
在这里插入代码片
$ git pull --tags
$ git pull --tags -f
重新覆盖本地tags缓存 问题解决
git在push时,出现“hint: Updates were rejected because the tag already exists in the remote.” 有tag标签显示已经存在
原因:本地标签tag和远程tag出现不一致
可以通过执行以下命令:
在这里插入代码片
$ git pull --tags
$ git pull --tags -f
重新覆盖本地tags缓存 问题解决