error: index-pack died of signal fatal: index-pack failed【Git】

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

猜你喜欢

转载自www.cnblogs.com/shengwang/p/9993897.html