首页 > 其他 > 详细

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

时间:2017-01-04 19:56:44      阅读:1900      评论:0      收藏:0      [点我收藏+]

今天在使用 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.

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!