error: src refspec XXX matches more than one

Posted 沧海一滴

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了error: src refspec XXX matches more than one相关的知识,希望对你有一定的参考价值。

 

error: dst refspec v1.0 matches more than one.
error: failed to push some refs to ‘‘

错误原因是 branch名和tag名有相同的,在执行git push origin :branchName时,就会报上面的错

删除branch:

git branch -r -d origin/branch-name  //只能使用这个命令来删除branch,下面的命令不可以。因为同样是因为有 matches more than one
git push origin :branch-name

 

删除tag:

git tag -d tagName

 

以上是关于error: src refspec XXX matches more than one的主要内容,如果未能解决你的问题,请参考以下文章

error: src refspec master does not match any.

error: src refspec test does not match any.

Git:错误:error:src refspec master does not match any

使用 Git 报错 error: src refspec master matches more than one.

解决:github上传时出现error: src refspec master does not match any

git commit时出错:error: src refspec master does not match any