git push 提交时出错 the remote end hung up unexpectedly

错误原因

与远程服务的连接中断,但是检查发现origin还在,可能是文件太大,缓存不够,增加缓存大小

解决方案

专案目录 》.git 》config

在末尾增加如下代码

[http]
	postBuffer = 524288000

正常以上就可以解决问题,如果问题还在,就要考虑是否是网络太慢的原因,增加网络延时

git config --global http.lowSpeedLimit 0
git config --global http.lowSpeedTime 999999
posted @ 2020-06-19 11:50  曲幽  阅读(1002)  评论(0编辑  收藏  举报