Linux 中的 Git clone fsync 输入/输出错误

标签 git git-clone fsync

我正在尝试克隆 tensorflow/models 存储库。我使用 ssh 连接到远程机器。我尝试了很多解决问题的建议,但没有一个对我有用。

git clone --recursive https://github.com/tensorflow/models.git
Cloning into 'models'...
remote: Counting objects: 1670, done.
remote: Compressing objects: 100% (28/28), done.
remote: Total 1670 (delta 10), reused 0 (delta 0), pack-reused 1642
Receiving objects: 100% (1670/1670), 49.23 MiB | 8.44 MiB/s, done.
Resolving deltas: 100% (670/670), done.
fatal: fsync error on '/home/OFFICE/utk/projects/syntaxnet/models/.git/objects/pack/tmp_pack_2w67RB': Input/output error
fatal: index-pack failed

最佳答案

问题是我试图在 nfs 文件系统中克隆。 解决方案是在非 nfs 位置克隆 repo,然后将文件夹移动到所需的 nfs 位置。

cd /tmp   (non nfs location)
git clone blablabla.git
mv blablabla ~

关于Linux 中的 Git clone fsync 输入/输出错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40849596/

相关文章:

git - 无法使用 Azure DevOps 为 Azure Repos git 生成 git 凭据

git - 授予对 github 上单个文件的访问权限

使用 ssh 从 AWS EC2 中的存储库进行 Git 克隆?

c++ - Windows c++ 的 Fsync 替代方案

merge 后的 Git rebase 对已删除的文件感到困惑

git-clone - 在 libgit2 的 git_clone 中在哪里设置用户名和密码?

git - 可以配置 Composer 使用 http 而不是 git clone git@

c++ - 如何在 ofstream 上进行 fsync?

linux - 在 X 秒内强制不超过一次写入/同步到磁盘

git - 维基百科和其他维基使用什么 VCS 系统?