git 推送出现 “fatal: The remote end hung up unexpectedly”
在使用git更新或提交项目时候出现 “fatal: The remote end hung up unexpectedly ” 原因是推送的文件太大。
那就简单了,要么是缓存不够,要么是网络不行,要么墙的原因
特别是资源库在国外的情况下。此问题可能由网络原因引起。
方法一:
修改提交缓存大小为500M,或者更大的数字
|
1
2
3
4
5
|
git config --global http.postBuffer 524288000# some comments below report having to double the value:git config --global http.postBuffer 1048576000 |
或者在克隆/创建版本库生成的 .git目录下面修改生成的config文件增加如下:
|
1
2
|
[http]postBuffer = 524288000 |
|
1
|
fatal: The remote end hung up unexpectedlyB | 2.00 KiB/s |
我的是这样的,后面带| 9.00KiB/s
这句显示 远程结束挂起 |9KiB/s
应该是墙的原因导致网速太慢,且项目有点大上传不上
解决办法:FQ 或者换个网速好的网络重新再push一遍 就没问题了

浙公网安备 33010602011771号