git push提交时报完整错误:
16:13:54.754: [xxx] git -c core.quotepath=false -c log.showSignature=false push --progress --porcelain origin refs/heads/master:master fatal: Out of memory, malloc failed (tried to allocate 947912704 bytes) error: failed to push some refs to 'https://gitee.com/xxx/xxx.git'
内存分配错误,只可以分947多M,需要分配多少?不知道,这个与http.postBuffer 参数有关,是按http.postBuffer设置的内存大小分配,设置太小时会报错:git:Push failed Enumerating objects: 23, done. Delta compression using up to 12 threads Total 12 (de-CSDN博客设置超过本机剩下内存时就会报错误
重新设置该参数:
git config --global http.postBuffer 1024000000
合理设置该参数后,重新推送成功,如下图: