git问题:致命:无法写入新的索引文件 [英] git problem : fatal: Unable to write new index file

查看:1187
本文介绍了git问题:致命:无法写入新的索引文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个已经在git下管理的现有项目。我最近不得不对电脑进行彻底重建(OS X Snow Leopard),然后返回到项目中,git可以跟踪项目中的更改,但我无法保存任何内容到git。我试着在标题中看到错误:

  Dans-iMac-335:[app-name-obscured] apple $ git add app / models / * 
fatal:无法写入新的索引文件

什么是从这种情况中恢复的最佳方法?这里有一个heroku版本库版本,但它与这个版本非常不同步。大概我可以使用一个新的克隆作为基础,并更新每个文件,但似乎过于费力和容易出错。



git在这里寻找它找不到的东西,并且是否有更改可以恢复它?



顺便说一下,文件权限是正确的,我可以告诉 - 文件在控制和.git组件都是我拥有rw访问...

解决方案

我刚遇到同样的情况,事实证明我的文件系统已满。

I have an existing project that has been managed under git. I recently had to do a ground-up rebuild of the computer (OS X Snow Leopard), and returning to the project, git can track the changes in the project, but I can't save anything to git. I get the error in the title when I try :

Dans-iMac-335:[app-name-obscured] apple$ git add app/models/*
fatal: Unable to write new index file

What's the best way to recover from this situation? There is a heroku repository version of this, but it is very out of sync with this one. presumably I could use a new clone as a basis, and update each file, but that seems over laborious and error prone.

What is git looking for here that it can't find, and is there a change that will restore it?

BTW, file permissions are correct from what I can tell - the files under control and the .git components are both owned by me with rw access...

解决方案

I just ran into the same situation, it turned out that my filesystem was full.

这篇关于git问题:致命:无法写入新的索引文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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