博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
git clone 出现Cannot allocate memory
阅读量:6902 次
发布时间:2019-06-27

本文共 1074 字,大约阅读时间需要 3 分钟。

hot3.png

今天拉取分之的时候出现以上错误,按照之前往上搜索的修改注册表无效.后来在国外一个网站上找到解决方案.

git config --add core.bigFileThreshold 4m

完美解决.

一堆鸟文,谁有兴趣可以帮忙解释一下什么意思,鸟文如下.

The error itself originates in git's sha1 object handling code, but it is hard to say what's going on exactly without say knowing what's the errno returned by mmap.

Could you run your command under strace and post here the lines around mmap failure?

EDIT: Try git config --add core.bigFileThreshold 4m (or maybe even a lesser number).

core.bigFileThreshold    Files larger than this size are stored deflated, without attempting delta compression. Storing large files without delta compression avoids excessive memory usage, at the slight expense of increased disk usage.    Default is 512 MiB on all platforms. This should be reasonable for most projects as source code and other text files can still be delta compressed, but larger binary media files won’t be.    Common unit suffixes of k, m, or g are supported.

附上问题链接:http://stackoverflow.com/questions/20652850/git-fetch-cannot-allocate-memory

转载于:https://my.oschina.net/u/1414906/blog/534986

你可能感兴趣的文章
php趣味 - php 奥运五环
查看>>
Ext4 Disk Layout-2
查看>>
原 2017/5 JavaScript基础6--- 对象
查看>>
Python 列表、元组、字典t的常用方法
查看>>
MYSQL groupby使用方法。
查看>>
如何将ppt转换成pdf
查看>>
PowerDesigner连接MySQL数据库
查看>>
文件格式转换控件LEADTOOLS ePrint Professional
查看>>
ORACLE常见的六种RMAN恢复测试
查看>>
(Portal 开发读书笔记) Personalization
查看>>
SRCNN 实验细节
查看>>
Java多线程第二节-线程的基本使用
查看>>
界面控件Essential Studio for ASP.NET Web Forms 2017 v3发布丨附下载
查看>>
教你制作属于自己的CentOS 6.4一键自动化安装ISO镜像光盘
查看>>
线上 mysql 主库配置文档
查看>>
Java web部署目录结构和web.xml作用
查看>>
负载均衡DR(direct routing)模式
查看>>
Python中list的遍历
查看>>
Linux下查看内存等硬件信息
查看>>
mysql 登录权限
查看>>