【问题标题】:GitHub, push error: the remote end hung up unexpectedlyGitHub,推送错误:远程端意外挂断
【发布时间】:2019-01-01 16:50:15
【问题描述】:

我现在无法将本地提交推送到 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 提供的一些解决方案,但没有任何效果。

我还尝试推送另一个项目以排除网络问题。它成功了,虽然需要一些时间。

我跑了git fsck,接收

git fsck --full
Checking object directories: 100% (256/256), done.
Checking objects: 100% (3831/3831), done.

【问题讨论】:

标签: git github


【解决方案1】:

文件大小

让我们尝试使用更大的后缓冲区,如 here 所述。

git config http.postBuffer 100000000

http.postBuffer

将数据发送到远程系统时,智能 HTTP 传输使用的缓冲区的最大大小(以字节为单位)。对于大于这个缓冲区大小的请求,使用 HTTP/1.1 和 Transfer-Encoding: chunked 来避免在本地创建海量的包文件。默认为 1 MiB,足以满足大多数请求。

来自https://stackoverflow.com/a/3605544/581076的想法


最初的想法

这看起来像是服务器问题。

如果你之前可以推送,建议再等一段时间再试试。

【讨论】:

  • 但是我成功推了另一个项目。是不是只能推送这个项目?
  • 嗯...您正在推动的更改中有二进制文件或其他特殊文件吗?
  • 同样来自同一台机器和同一 github 用户的其他项目是什么?
  • 都来自同一台机器和同一个github用户
  • 无法推送成功的项目是GitHub博客。所有更改都是 md 和 png 文件
猜你喜欢
  • 2021-12-28
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-06-09
  • 2013-02-12
相关资源
最近更新 更多