git:BUG:read-cache.c:327:不支持的ce_mode:40000
当调用 git commit -m "XXX" 时,我收到此错误:
BUG: read-cache.c:327: unsupported ce_mode: 40000
Aborted (core dumped)
有没有办法摆脱这种情况,例如通过删除一些缓存文件?
When calling git commit -m "XXX"
I am getting this error:
BUG: read-cache.c:327: unsupported ce_mode: 40000
Aborted (core dumped)
Is there any way to get out of this situation, e.g. by deleting some cached files?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
此消息意味着不知何故,一个目录被添加到 Git 的索引中,这通常是不期望或不允许的。消息中的“BUG”部分意味着这种情况永远不应该发生,您可能需要使用
git bugreport
将其报告给 Git 邮件列表 [如此处所述]。您可以尝试执行 git update-index -q --really-refresh 来查看是否可以将数据重新加载到磁盘上。不过,您可能需要先备份 .git/index 以便以后调试。
This message means that somehow, a directory got added to Git's index, which is not typically expected or allowed. The "BUG" portion of the message means that this should never happen, and you'd want to report it to the Git mailing list [as outlined here], possibly by using
git bugreport
.You could try doing
git update-index -q --really-refresh
to see if you can reload the data on disk. You may want to back up.git/index
for later debugging first, though.