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 --all

2.配置~/.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】相关推荐

  1. 【Git】报错处理:fatal: detected dubious ownership in repository at .....Set the environment variable GIT_T

    [Git]报错处理:fatal: detected dubious ownership in repository at ..... 异常信息 解决 异常信息 Windows PowerShell 版 ...

  2. 【Git】error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was rece

    目录 一. 问题 二. 解决 一. 问题 今天拉取代码,出现如下所示错误: error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packe ...

  3. 【git】fatal: in unpopulated submodule

    为了直接编译go代码,把依赖库放common下了. 然后, 把下载回来的git 代码上传了 怎么才能 直接上传代码呢? 直接add报错:fatal: in unpopulated submodule ...

  4. 【git】./git下路径某pack文件cannot be mapped:Resource temporarily unavailable

    项目场景:Cygwin64中使用git pull时出现./git下路径某pack文件cannot be mapped:Resource temporarily unavailable 相关背景: 题主 ...

  5. 【Git】mac执行git命令出现xcrun: error: invalid active developer path解决方法

    mac执行git命令时候出现: xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), m ...

  6. 【git】Git 提示fatal: remote origin already exists 错误解决办法

    今天使用git 添加远程github仓库的时候提示错误:fatal: remote origin already exists. 最后找到解决办法如下:  1.先删除远程 Git 仓库 $ git r ...

  7. 【Git】error: RPC

    摘要 git push throws error: RPC failed; result=56, HTTP code = 200的解决办法 原因 默认 Git 设置 http post 的缓存为 1M ...

  8. 【Git】remote: error: cannot lock ref

    remote: error: cannot lock ref 今天拉了一个dev/pay/1.4.3 分支,push 时候出错: remote: error: cannot lock ref 'ref ...

  9. 【git】error: .repo/manifests/: contains uncommitted changes解决思路

    1.问题 同步代码时运行repo sync,出现问题: error: .repo/manifests/: contains uncommitted changes 2.解决 # 1.进入这个目录,将修 ...

最新文章

  1. bde oracle 商友的流程_bde oracle 商友的流程_BDE动态连接Oracle数据库
  2. 听研二师兄师姐报告收获
  3. java.lang.OutOfMemoryError: Java heap space 错误及解决办法
  4. CF1446F-Line Distance【计算几何,树状数组,二分】
  5. 深度学习文本分类在支付宝投诉文本模型上的应用
  6. ga算法matlab,matlab遗传算法ga函数
  7. php 编码规范哪些_整理了一份比较全面的PHP开发编码规范.
  8. 100篇文献-万字总结 || 强化学习求解车间调度
  9. mysql where range_MYSQL explain详解之range
  10. 仿Hex-Editor,实现简单地二进制文件查看器JHexer
  11. 测度论与概率论基础(程士宏)学习笔记(一)
  12. 使用SVG构建icon
  13. Linux之CentOS tar压缩与解压命令大全
  14. KGB知识图谱完善保险行业的知识应用体系
  15. SAP S/4 HANA Cloud自定义报表制作方法二
  16. cd/etc 文件目录浅解
  17. java 图片相似度_GitHub - java51talk/image-similarity: 计算图片之间的相似度
  18. 【设计模式学习】工厂方法模式
  19. 分享|2023年全球市场准入认证咨讯
  20. 腾讯产品18讲10:把握产品需求的管理节奏

热门文章

  1. Java 面向对象编程、jQuery、JavaScript、servlet、javabean----理论知识
  2. CentOS下php安装mcrypt扩展
  3. 处理json中影响解析的多余引号
  4. 5.3.6 虚拟地址、线性地址和物理地址之间的关系
  5. ASP.NET前台JS与后台CS函数如何互相调用
  6. Android---如何返回上一Activity
  7. JPEG文件格式简单分析
  8. 实现集合类的元素删除和修改的一点实践。。。
  9. 火眼金睛算法,教你海量短文本场景下去重
  10. topcoder srm 500 div1