Git push error:dst refspec XXX matches more than one打赏
最近工作中遇到这样的问题,使用的是Git做版本控制,在PUSH代码的时候,出现如下错误:
error: dst refspec XXX matches more than one. error: failed to push some refs to 'git@xxx.xx:xxx.git'
初步一看,还想,怎么可能,出现两个相同的分支?表示很不解。
查看Git服务器上的分支也只有一个指定名称的分支,最后无意间发现在于服务器上有一个和分支名称相同的tag,安装项目组的习惯,tag一般都是以时间作为名称的,这里怎么会出现这个,好奇中删掉它重试,果然,Git把tag和分支搞在一起了,tag名称不能和分支名称完全相同,不知道这是Git个别版本的bug还是就这样机制。
仅此记录以方便大家。
- 固定链接:https://www.poorren.com/git-push-errordst-refspec-xxx-matches-more-than-one
- 文章标签:branch,git,git push,git push error,git push matches more than one,tag
- 扫二维码:Git push error:dst refspec XXX matches more than one
- 版权所有:除"转载分享"分类外,未经注明,均为原创、整理,转载请注明出处。
收藏起来,遇到了可以处理。
收藏起来,遇到了可以处理。