git clone 失败由于 : git-pack-objects died with error

git clone 的时候报错:

  error: git upload-pack: git-pack-objects died with error.
  fatal: git upload-pack: aborting due to possible repository corruption on the remote side.
  remote: fatal: unable to read 29d803f20bb36146259b8f1c8991fc8708170e2e
  remote: aborting due to possible repository corruption on the remote side.

在git库目录下面使用:

  git fsck --no-dangling
  git repack -adf --window=200 --depth=200

如果还不能解决那只能从以前备份的文件中替换.

上一篇:nomad-pack nomad的仓库特性


下一篇:git长时间未清理无法拉取代码( git Auto packing the repository in background for optimum performance)