我最近在尝试克隆 git 存储库时收到以下错误日志:
remote: Counting objects: 4607, done.
error: git upload-pack: git-pack-objects died with error.B/s
fatal: git upload-pack: aborting due to possible repository corruption on the remote side.
remote: fatal: Out of memory, malloc failed (tried to allocate 119483755 bytes)
remote: aborting due to possible repository corruption on the remote side.
fatal: early EOF
fatal: index-pack failed
Run Code Online (Sandbox Code Playgroud)
经过调查,看起来错误来自 repo 服务器。我通过 ssh 连接并尝试了以下所有方法(基本上是谷歌结果的前 2 页提出的所有解决方案):
通过添加以下行来修改配置文件:
[core]
packedGitLimit = 512m
packedGitWindowSize = 512m
[pack]
windowMemory = 512m
packSizeLimit = 512m
deltaCacheSize …Run Code Online (Sandbox Code Playgroud)