我一整天都在努力解决这个问题: 当我尝试在空目录中 pull 或克隆 存在存储库时,出现错误:
$ git clone https://bitbucket.org/path_to_repo/aroma
Cloning into 'aroma'...
remote: Counting objects: 1335, done.
remote: Compressing objects: 100% (1174/1174), done.
remote: Total 1335 (delta 618), rReecused 551 (deltea 72)
Receiving objects: 100% (1335/1335), 43.16 MiB | 3.78 MiB/s, done.
Resolving deltas: 100% (618/618), done.
fatal: fsync error on 'H:/Project/testrep/aroma/.git/objects/pack/tmp_pack_xqHCKb': Bad file descriptor
fatal: index-pack failed
我尝试在配置中设置 pack.windowMemory 大小和 pack.packSizeLimit 等等。同样的错误;[ 在我克隆存储库之前。但是出了点问题
最佳答案
检查问题是否仍然存在:
- latest version of Git for Windows ,
- 在本地磁盘上(C:\而不是
H:\
) - 来自常规 CMD Windows shell session (不是
git bash
)
根据驱动器 H:\
的性质,由于上述性质,您可能无法访问/更新文件。
So other repos locate neighbor and it repos very good pull and push.
如果其他存储库正在从 H: 运行(意味着您可以从 H: 上的那些存储库克隆/推送/pull ),请尝试将错误的存储库复制(简单复制)到另一个文件夹,然后尝试从另一个文件夹中克隆它文件夹。如果仍然失败,则说明其中的某些内容已损坏:是时候应用 git fsck
了 进行检查。
关于git - 致命的 : fsync error on git/repo/path,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40828072/