ubuntu下git报错 fatal The remote end hung up unexpectedly解决方案

报错信息如下:

1
2
3
error: RPC failed; curl 56 GnuTLS recv error (-12): A TLS fatal alert has been received.
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly

解决方案:


1
git config http.postBuffer 524288000

若报错:
4
则使用命令:


1
git config --global http.postBuffer 524288000

命令作用:调整缓存大小为500M

如果觉得有帮助就请我喝杯咖啡鼓励我继续创作吧^_^