0


git 推送出现fatal: The remote end hung up unexpectedly解决方案

在使用git更新或提交项目时候出现 "fatal: The remote end hung up unexpectedly " 的报错;
报错的原因原因是推送的文件太大。

下面给出解决方法

方法一:

修改提交缓存大小为500M,或者更大的数字

git config --global http.postBuffer 524288000

some comments below report having to double the value:

git config --global http.postBuffer 1048576000

或者在克隆/创建版本库生成的 .git目录下面修改生成的config文件增加如下:

[http]  
postBuffer = 524288000

在这里插入图片描述
在这里插入图片描述

方法二:

配置git的最低速度和最低速度时间:

git config --global http.lowSpeedLimit 0
git config --global http.lowSpeedTime 999999 单位 秒
–global配置对当前用户生效,如果需要对所有用户生效,则用–system

标签: git

本文转载自: https://blog.csdn.net/qq_41243472/article/details/132923949
版权归原作者 随机的未知 所有, 如有侵权,请联系我们删除。

“git 推送出现fatal: The remote end hung up unexpectedly解决方案”的评论:

还没有评论