GIT:“致命:无法写入new_index文件”同时提交 [英] GIT: "fatal: unable to write new_index file" while commit
问题描述
当我尝试将更改提交到本地回购时,我收到以下消息:
致命:无法写入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
- a resource issue with msysgit and Egit (Git for Eclipse):
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
- for a classic anti-virus issue:
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屋!