git - 无法创建临时文件 : no such file or directory - only for certain files?

标签 git

我的一个 git 存储库出现了一个奇怪的问题。我无法添加某些文件。 Git 声明:

$ git add Konstruktion/Druckteile/1x_*
warning: CRLF will be replaced by LF in Konstruktion/Druckteile/1x_Hals.gcode.
The file will have its original line endings in your working directory.
error: unable to create temporary file: No such file or directory
error: Konstruktion/Druckteile/1x_Nickhalter_links.STL: failed to insert into database
error: unable to index file Konstruktion/Druckteile/1x_Nickhalter_links.STL
fatal: adding files failed

但仅限于此单个文件。同一目录中的所有其他文件,即使名称相似(例如 1x_Nickhalter_rechts.STL)也很有用。为什么只有这个文件?它有什么特别之处?

我该怎么做才能找出问题所在?

啊,仅供引用:它是在 Windows 8.1(64 位)上运行的 git 1.8.5.2.msysgit.0。

非常感谢。

干杯, 亨德里克

最佳答案

我在添加文件时遇到了完全相同的问题。以下对我有用:

git config --global core.fscache false

不知道它为什么有效,但希望它可以为其他人工作。

关于git - 无法创建临时文件 : no such file or directory - only for certain files?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21627588/

相关文章:

git - 克隆 GitHub 存储库并 merge 所有 pull 请求

git - 为什么 no-op filter-branch 会产生分歧,我该如何解决?

git - 在 monorepo 的模块之间分离提交消息

git - git 修订格式 refname@{n} 和 rev~n 有什么区别

git - ssh-agent(PID 11108,需要关闭)

git - 将 Jenkins 与私有(private) BitBucket Git 存储库一起使用

git - 将 gh-pages 和 wiki merge 在同一分支中

git - Netbeans:如何显示将被推送的所有 (git) 提交?

git - TFS 2013 是否有搁置集(使用 GIT 时)?

git - 取消提交当前分支中的所有提交,但将所有更改保留在当前状态