码迷,mamicode.com
首页 > 其他好文 > 详细

error: src refspec XXX matches more than one

时间:2017-02-19 12:32:25      阅读:276      评论:0      收藏:0      [点我收藏+]

标签:就会   原因   nbsp   div   错误   logs   xxx   erro   style   

 

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

标签:就会   原因   nbsp   div   错误   logs   xxx   erro   style   

原文地址:http://www.cnblogs.com/softidea/p/6415343.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!