git 同步超大仓库失败的解决办法 发表于 2020-05-13 分类于 其他 git 同步超大仓库的时候,会报如下错误 123456git fetcherror: git upload-pack: git-pack-objects died with error.iB/sfatal: git upload-pack: aborting due to possible repository corruption on the remote side.fatal: the remote end hung up unexpectedlyfatal: early EOFfatal: index-pack failed 此时使用 git config core.compression -1 对代码进行压缩 或者 git fetch --depth 1 origin remote_branch_name 只同步一个分支,都可以解决该问题。 zsh 在超大工程下可能会性能变差,可以执行 git config --add oh-my-zsh.hide-dirty 1 来优化该问题。