error: index-pack died of signal fatal: index-pack failedGit

Posted shengwang

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了error: index-pack died of signal fatal: index-pack failedGit相关的知识,希望对你有一定的参考价值。

error: index-pack died of signal fatal: index-pack failed

环境:

克隆Linux源码时发生错误
git clone https://github.com/torvalds/linux.git

error: index-pack died of signal fatal: index-pack failed

google云Compute Engine
Memory: 0.6GB内存
Linux版本: Debian GNU/Linux 9.5 (stretch)

错误原因

结合网上的博客、以及StackOverFlow的回答,问题原因应该是计算机内不足导致的

解决方法

1.尝试

#!/bin/bash
git config --global core.compression 0

git clone --depth 1 <repo_URI>

git fetch --unshallow

git pull --all



以上是关于error: index-pack died of signal fatal: index-pack failedGit的主要内容,如果未能解决你的问题,请参考以下文章