Git错误!:fatal: Out of memory, malloc failed
2020-02-02 21:55
1301 查看
首先看错误信息,不懂得用英文翻译一下
1 Git 报内存不足(fatal: Out of memory, malloc failed )
1.1 将运行环境分类
你的项目存在在哪里?虚拟机或者本机上,虚拟机上的话请搜索分配Git默认cache和swap(交换空间,一般是这个),如果是在本机上并且你的内存配置正常,那么不要去相信什么第一种的答案,分配内存,增加交换空间,这种配置会让你的机器报未知错误(我就是,填了一个大坑。鬼知道我经历了什么)。这时候你就要去看看,你的项目的.git/config文件
[code]C:\你的用户\.gitconfig //全局配置(找不到搜索) C:\myapp\.git\config //项目配置.git
config文件中url是否为http如果是的话那么将url改为
[code]url = git@github.com:xxxxx/xxxxx.git
这样就成功了
- 点赞
- 收藏
- 分享
- 文章举报
相关文章推荐
- Gerrit 执行 git pull 的时候,提示 fatal: Out of memory, malloc failed (tried to allocate *** bytes)错误的解决方法
- Ubuntu Git使用时出现错误Out of memory, malloc failed之解决
- FATAL ERROR: JS Allocation failed - process out of memory
- git fatal: Out of memory, malloc failed
- caffe跑试验遇到错误:Check failed: error == cudaSuccess (2 vs. 0) out of memory
- 【git/内源开发】fatal: Out of memory, malloc failed问题的解决
- 【caffe跑试验遇到错误:Check failed: error == cudaSuccess (2 vs. 0) out of memory】
- caffe跑试验遇到错误:Check failed: error == cudaSuccess (2 vs. 0) out of memory
- Git使用小坑 Out of memory错误的解决方法
- 【caffe跑试验遇到错误:Check failed: error == cudaSuccess (2 vs. 0) out of memory】
- angular4 JavaScript内存溢出问题 (FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory)
- MongoDB和容易出现“mmap failed with out of memory”错误
- 【caffe跑试验遇到错误:Check failed: error == cudaSuccess (2 vs. 0) out of memory】:
- 关于MongoDB在64位服务器上依然报 mmap failed with out of memory 错误的解决方法(附Mysql性能对比测试)
- 关于java.lang.OutOfMemoryError:java heap space错误解决方案
- java.lang.OutOfMemoryError: Java heap space错误及处理办法(收集整理、转)
- Tomcat启动错误:java.lang.OutOfMemoryError
- 问题-Delphi编译到最后Linking时总是出现与ntdll.dll有关的错误还有Fatal Error Out of memory错误
- java项目部署到linux系统上出现java.lang.OutOfMemoryError: PermGen space错误
- java.lang.OutOfMemoryError处理错误