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 --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】相关推荐
- 【Git】报错处理:fatal: detected dubious ownership in repository at .....Set the environment variable GIT_T
[Git]报错处理:fatal: detected dubious ownership in repository at ..... 异常信息 解决 异常信息 Windows PowerShell 版 ...
- 【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 ...
- 【git】fatal: in unpopulated submodule
为了直接编译go代码,把依赖库放common下了. 然后, 把下载回来的git 代码上传了 怎么才能 直接上传代码呢? 直接add报错:fatal: in unpopulated submodule ...
- 【git】./git下路径某pack文件cannot be mapped:Resource temporarily unavailable
项目场景:Cygwin64中使用git pull时出现./git下路径某pack文件cannot be mapped:Resource temporarily unavailable 相关背景: 题主 ...
- 【Git】mac执行git命令出现xcrun: error: invalid active developer path解决方法
mac执行git命令时候出现: xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), m ...
- 【git】Git 提示fatal: remote origin already exists 错误解决办法
今天使用git 添加远程github仓库的时候提示错误:fatal: remote origin already exists. 最后找到解决办法如下: 1.先删除远程 Git 仓库 $ git r ...
- 【Git】error: RPC
摘要 git push throws error: RPC failed; result=56, HTTP code = 200的解决办法 原因 默认 Git 设置 http post 的缓存为 1M ...
- 【Git】remote: error: cannot lock ref
remote: error: cannot lock ref 今天拉了一个dev/pay/1.4.3 分支,push 时候出错: remote: error: cannot lock ref 'ref ...
- 【git】error: .repo/manifests/: contains uncommitted changes解决思路
1.问题 同步代码时运行repo sync,出现问题: error: .repo/manifests/: contains uncommitted changes 2.解决 # 1.进入这个目录,将修 ...
最新文章
- bde oracle 商友的流程_bde oracle 商友的流程_BDE动态连接Oracle数据库
- 听研二师兄师姐报告收获
- java.lang.OutOfMemoryError: Java heap space 错误及解决办法
- CF1446F-Line Distance【计算几何,树状数组,二分】
- 深度学习文本分类在支付宝投诉文本模型上的应用
- ga算法matlab,matlab遗传算法ga函数
- php 编码规范哪些_整理了一份比较全面的PHP开发编码规范.
- 100篇文献-万字总结 || 强化学习求解车间调度
- mysql where range_MYSQL explain详解之range
- 仿Hex-Editor,实现简单地二进制文件查看器JHexer
- 测度论与概率论基础(程士宏)学习笔记(一)
- 使用SVG构建icon
- Linux之CentOS tar压缩与解压命令大全
- KGB知识图谱完善保险行业的知识应用体系
- SAP S/4 HANA Cloud自定义报表制作方法二
- cd/etc 文件目录浅解
- java 图片相似度_GitHub - java51talk/image-similarity: 计算图片之间的相似度
- 【设计模式学习】工厂方法模式
- 分享|2023年全球市场准入认证咨讯
- 腾讯产品18讲10:把握产品需求的管理节奏