我现在无法将本地提交推送到 github 存储库。我收到一条错误消息:
Counting objects: 76, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (75/75), done.
Writing objects: 100% (76/76), 5.23 MiB | 24.67 MiB/s, done.
Total 76 (delta 45), reused 0 (delta 0)
remote: fatal: early EOF
error: RPC failed; curl 55 SSL_write() returned SYSCALL, errno = 32
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date
我尝试过提供的一些解决方案here https://stackoverflow.com/questions/24114676/git-error-failed-to-push-some-refs-to,没有任何作用。
我还尝试推动另一个项目来排除网络问题。尽管需要一些时间,但它成功了。
I ran git fsck
, 接收
git fsck --full
Checking object directories: 100% (256/256), done.
Checking objects: 100% (3831/3831), done.
文件大小
让我们尝试使用更大的后缓冲区,如上所述here https://git-scm.com/docs/git-config#git-config-httppostBuffer.
git config http.postBuffer 100000000
http.postBuffer
将数据 POST 到远程系统时,智能 HTTP 传输使用的缓冲区的最大大小(以字节为单位)。对于大于此缓冲区大小的请求,将使用 HTTP/1.1 和 Transfer-Encoding: chunked 来避免在本地创建大量包文件。默认值为 1 MiB,足以满足大多数请求。
想法来自https://stackoverflow.com/a/3605544/581076 https://stackoverflow.com/a/3605544/581076_
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)