推送GitHub时,出现如下报错
fatal: Out of memory, malloc failed (tried to allocate XXXXXX bytes)
error: failed to push some refs to ‘https://github.com/xxxxxxx/xx.git‘
修改配置文件(.git/config)中远程GitHub的url为SSH形式,而不是HTTPS格式
SSH:git@github.com:用户名/仓库名.git
修改后正常,如下:
未知
推送GitHub报错 fatal: Out of memory, malloc failed 解决办法
原文:https://www.cnblogs.com/jtzhang163/p/10747602.html