Git 的BUG小结

 Git 的BUG小结

Git 在push的时候出现了:

 

fatal: The remote end hung up unexpectedly

 

在网上找了很多  发现出现了以下错误提示也可能是相同的问题:

 

error: RPC failed; result=22, HTTP code = 411
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date

在网上查到的解决方法如下:

以上发生在push命令中,有可能是push的文件过大导致
解决方法:
windows:
在 .git/config 文件中加入
[http]
postBuffer = 524288000

linux:
git config http.postBuffer 524288000 

 

我按照网上提供的方式解决了问题:

上图  进入git文件

 

Git 的BUG小结_第1张图片

打开config 文件 在里面填上:

 

Git 的BUG小结_第2张图片

 

就此解决了

非常感激网上分享解决方案的人们

谢谢

你可能感兴趣的:(error,git,fatal,推送失败,git推送失败)