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.--depth 1 只clone 最近一次的提交
#!/bin/bash git config --global core.compression 0git clone --depth 1 <repo_URI>git fetch --unshallowgit pull --all2.配置~/.gitconfig
gitconfig --global pack.threads 1gitconfig --global pack.deltaCacheSize = 128m git config --globalpack.windowMemory 1024m這樣一來,應該是可以減小資源的占用,但對于大的git還是無濟于事。
3.配置交換空間
原理顯而易見,通過提高系統內存,完成大git倉庫的clone操作。
轉載于:https://www.cnblogs.com/shengwang/p/9993897.html
總結
以上是生活随笔為你收集整理的error: index-pack died of signal fatal: index-pack failed【Git】的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 重温Vue-router
- 下一篇: Spring Boot中对自然语言处理工