GIT:“致命:无法写入new_index文件”同时提交 [英] GIT: "fatal: unable to write new_index file" while commit

查看:3897
本文介绍了GIT:“致命:无法写入new_index文件”同时提交的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试将更改提交到本地回购时,我收到以下消息:

致命:无法写入new_index文件

解决方案

由于此线程说明,这通常是一个磁盘空间问题:

  $ git status 
致命:无法写入new_index文件




我发现的一个原因是我的文件系统已经耗尽了空间。

使用类似下面的内容查找大型目录有助于清理一些运行狂野的日志文件:



  $ du -h / | grep ^ [0-9。] * G 






注意:您也可以看到它


  • a 资源问题 with msysgit和Egit(Git for Eclipse):



问题仍然存在,所以我从Sysinternals Suite运行File Monitor。

似乎Eclipse正在不断访问索引文件并阻止命令行git

$对于







  • lockquote


    是的,看起来像Windows Defender再次罢工。我总是忘记禁用那该死的东西。我不敢相信它是多么的破碎。销毁家中的蓝光播放,在工作中打破Git ...


When I try to commit changes to local repo, I have got following message:
fatal: unable to write new_index file

As this thread illustrates, this is usually a disk space issue:

$ git status
fatal: unable to write new_index file

One cause of this that I found was that my file system had run out of space.
Finding large directories with something like the following helped clean up some log files that had run wild :

$ du -h / | grep ^[0-9.]*G


Note: you can also see it for

Problem still remained so I ran File Monitor from Sysinternals Suite.
It seems that Eclipse is accessing index file constantly and blocks command line git

Yeah, looks like Windows Defender strikes again. I always forget to disable that damn thing. I can't believe how broken it is. Destroys Blu-ray playback at home, breaks Git at work...

这篇关于GIT:“致命:无法写入new_index文件”同时提交的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆