工作经验篇: git post数据过大报错-Out of memory
错误提示: malloc failed (tried to allocate 947912704 bytes)
因为是初始化项目,项目文件过大,所以报错.
网上很多都是乱来的. 这里直接指出问题所在,只需要修改http.postBuffer 即可
解决:
执行
git config --global http.postBuffer 524288000
git config --global core.compression -1
再改一下,网络限制配置
git pconfig --global http.lowSpeedLimit 0
git pconfig --global http.lowSpeedTime 999999
成功上传
本作品采用《CC 协议》,转载必须注明作者和本文链接