1. 程式人生 > >error: index-pack died of signal fatal: index-pack failed【Git】

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