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

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

时间:2017-01-04 19:57:00      阅读:237      评论:0      收藏:0      [点我收藏+]

标签:erro   git push   push   查看   git tag   style   -name   led   列表   

今天在使用 Git push 代码时遇到一个报错:

error: src refspec master matches more than one.
error: failed to push some refs to git@127.0.0.1:yn/enh.git

 

出现这个错误是因为有一个与当前提交分支同名的标签

 

查看标签列表:

git tag

 

删除这个标签:

git tag -d <tag-name>

 

 

再次 push 就 ok 了

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

标签:erro   git push   push   查看   git tag   style   -name   led   列表   

原文地址:http://www.cnblogs.com/libra0920/p/6249747.html

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