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
- 下一篇: NumberOf1Bits(leetco