简体   繁体   English

从远程Git存储库中提取时出错

[英]Error while pulling from remote Git repository

Error specification: 错误规范:

cannot lock ref 'refs/remotes/origin/m2I2/raju': unable to create lock file .git/refs/remotes/origin/m2I2/raju.lock; 无法锁定ref'refs / remotes / origin / m2I2 / raju':无法创建锁定文件.git / refs / remotes / origin / m2I2 / raju.lock; non-directory in the way 非目录方式

Tortoise Git显示的错误

Everything was working fine, but after my last push I am continuously facing this issue while pushing. 一切工作正常,但是在我上次推送后,我在推送时一直面临着这个问题。

I guess there is a branch m2i2 , M2I2 or M2i2 in origin and also a branch m2I2/raju . 我猜想起源有一个分支m2i2M2I2M2i2 ,还有一个分支m2I2/raju As you are pulling to Windows which is case insensitive you get a name clash, as the fetch tries to create a file raju.lock in the directory m2I2 while there is already a file m2i2 , M2I2 or M2i2 for the remote branch present and thus cannot create the directory m2I2 as those are the same name on Windows. 当您使用不区分大小写的Windows时,会发生名称冲突,因为fetch试图在目录m2I2创建文件raju.lock ,而远程分支已经存在文件m2i2M2I2M2i2 ,因此无法在Windows上创建与m2I2相同的目录。

To verify this, please execute git ls-remote origin '*m2i2*' '*M2I2*' '*M2i2*' '*m2I2*' and add its output to your question if you don't get it sorted yourself. 为了验证这一点,请执行git ls-remote origin '*m2i2*' '*M2I2*' '*M2i2*' '*m2I2*'并将其输出添加到您的问题中(如果您自己没有对它进行排序)。 And please don't use screenshots for textual output, but paste it as text, prefixed by four spaces. 并且,请勿将屏幕截图用于文本输出,而应将其粘贴为文本,并以四个空格作为前缀。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM