git/repo拉代码出现fatal: Out of memory, malloc failed (tried to allocate 292192648 bytes)
Posted 全栈CV攻城狮
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了git/repo拉代码出现fatal: Out of memory, malloc failed (tried to allocate 292192648 bytes)相关的知识,希望对你有一定的参考价值。
解决办法:
sudo mkdir -p /opt/temp
sudo dd if=/dev/zero of=/opt/temp/swapfile bs=1M count=1024
sudo chmod 600 /opt/temp/swapfile
sudo mkswap /opt/temp/swapfile
sudo swapon /opt/temp/swapfile
以上是关于git/repo拉代码出现fatal: Out of memory, malloc failed (tried to allocate 292192648 bytes)的主要内容,如果未能解决你的问题,请参考以下文章
克隆 git repo 导致错误 - 主机密钥验证失败。致命:远端意外挂断
使用repo init -u ssh://...拉代码时,总是出现如下情况!