问题概述:常规push命令不成功并且发现gitlab上对应分支内无最近修改(事实上有很多修改)
在v1.5分支下
执行
git push origin v1.5 --force
出现提示:
error:src refspec v1.5 matches more than one
error: failed to push some refs to "url"
后来终于找到了原因 ,发现gitlab上的branch名称与tags名称重名,看来这两者不可以重名。于是更改了tags的名称。继续↓↓
更新本地代码,取到新的tags,删除重名的tags
使用git tag -d v1.5删除
可用git tag -l查看
然后就可以push了