现象: 推送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 修改后…