提示如下错误:
Writing objects: 100% (10/10), 105.95 KiB | 0 bytes/s, done.
Total 10 (delta 2), reused 0 (delta 0)
error: RPC failed; result=35, HTTP code = 0
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date
后来,通过设置Git的http缓存大小,解决了这个问题,在当前工程目录下运行如下命令:
git config --global http.postBuffer 20M
如果20M不行就 50M
或者
将https这五个字母,改成git
原文链接:https://blog.youkuaiyun.com/wangwangstone/article/details/109443947
这篇博客介绍了在使用Git时遇到的RPC失败错误,表现为远程端意外挂断。作者提供了解决方案,即通过调整Git的http.postBuffer设置,如`git config --global http.postBuffer 20M`或更大。如果问题依然存在,可以尝试将HTTPS切换为使用SSH协议。此方法成功解决了文件上传问题。
1619

被折叠的 条评论
为什么被折叠?



