When I try to commit changes to local repo, I have got following message:
fatal: unable to write new_index file
相关问题
- Why does recursive submodule update from github fa
- Extended message for commit via Visual Studio Code
- Emacs shell: save commit message
- Can I organize Git submodules in a flat hierarchy?
- Upload file > 25 MB on Github
相关文章
- 请教Git如何克隆本地库?
- GitHub:Enterprise post-receive hook
- Git Clone Fails: Server Certificate Verification F
- SSIS solution on GIT?
- Is there a version control system abstraction for
- ssh: Could not resolve hostname git: Name or servi
- Cannot commit changes with gitextensions
- git: retry if http request failed
If you are using TortoiseGit, this error (or more recently: error: Unable to write index.) is very likely caused by having TortoiseGit icon overlays enabled. To disable icon overlays, go to:
TortoiseGit > Settings > Icon Overlays
and set Status cache to None. This may be fixed in a future version of TortoiseGit, but for now it seems to be common.
I got this error using Cygwin and git-svn. The solution that worked for me was to do garbage collection (odd as it seemed at the time):
I had same problem. In my case above solutions didn't work.
The reason behind this error is that the file
.git/index
was corrupted for some unknown reason. I just renamed the file to something else and run the 'git add .' command from git bash and it worked.Hope this helps someone.
As this thread illustrates, this is usually a disk space issue:
Note: you can also see it for
I have found solution. Just need to free some disk space.