情景
在使用git推送的时候,不知道是什么原因导致报错了,内容为:Updates were rejected because the tag already exists in the remote.这里有两种解决方案,有种能彻底解决问题。
No.1:Push all tags 推送的时候,将这个选项取消
这是使用SourceTree视图进行推送的,如果是命令端,就不要使用 --tags
No.2:将本地的Tags先删除(谨慎操作可先备份,再删除),然后再Pull拉一下,再Push就OK了,彻底解决问题
文件路径在项目所在路径 【 .git/refs/tags 】。