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
I have followed every solution here and none of them worked. I have no shortage of disk space, I have disabled Windows Defender, disabled icon overlays and whatnot. I had tons of files to import and maybe this was causing the problem (I had
boost
libraries among other things).I simply opened "Git Bash" and issued a number of
git add
and agit commit
and all went well. This has something to do with TortoiseGit but I am not sure what. It seems to choke on a large number of files or large directory depth.I used Unlocker on
.git\index.lock
to unlock any handles that are held open by other processes. In my case it was TGitCache.exe.For me it was a file locking issue.
To solve it I:
Hope this helps!
I had the same problem on macOS, I have solved it by removing
repo_folder/.git/index.lock
I was getting the same error while I was merging a git repo that was sshfs mounted. There was no shortage of space anywhere.
In my case the solution was to add an -o workaround=rename option to the sshfs mount command.
Like so: sshfs -o idmap=user -o uid=[lokal uid] -o gid=[lokal gid] -o workaround=rename [host]: [mountpoint]
I was having this issue, but I was able to commit with msysgit. I updated tortoisegit, and also noticed that my msysgit version was not in sync with tortoise git. I'm not sure if the latest version fixed it, or if it was due to having different versions of tortoise and msysgit. Anyway, another thing to check. It all started working after updating them both to TortoiseGit 1.7.10.0 git version 1.7.10.msysgit.1