推送GitHub报错 fatal: Out of memory, malloc failed 解决办法

现象:

推送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:[email protected]:用户名/仓库名.git

修改后正常,如下:

原因:

未知

猜你喜欢

转载自www.cnblogs.com/jtzhang163/p/10747602.html