sourceTree报错:Updates were rejected because the tag already exists in the remote.
新安装的sourceTree导入原有的项目,每次pull-push,都会报错:Updates were rejected because the tag already exists in the remote.
最烦的是每次还得在项目中手动执行一次 git push
解决办法是:在当前项目文件夹下
1,执行命令 获取所有的标签
git pull --tags
2、执行命令 覆盖本地存在的标签冲突
git pull --tags -f
再次pull-push就可以了