Git push error :RPC failed; curl 55 SSL_write() returned SYSCALL, errno = 10053. internet connection is ok, tried increasing buffer size

Git push error :RPC failed; curl 55 SSL_write() returned SYSCALL, errno = 10053. internet connection is ok, tried increasing buffer size

Enumerating objects: 282, done.
Counting objects: 100% (282/282), done.
Delta compression using up to 4 threads
Compressing objects: 100% (231/231), done.
Writing objects: 100% (282/282), 33.54 MiB | 126.73 MiB/s, done.
Total 282 (delta 52), reused 263 (delta 44)
error: RPC failed; curl 55 SSL_write() returned SYSCALL, errno = 10053
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
Everything up-to-date

我已经尝试过 git 配置缓冲区增量命令和 lfs。此外,我的互联网连接很好 git 在其他长期项目中工作正常。问题只在这个项目中,我尝试删除旧的回购并制作一个新的但失败了。项目大小为 85MB,它是一个小的前端页面,我正在为该项目使用 githubpages 进行实时服务,但现在出现此错误..请给我解决方案。

此错误表示您的操作系统返回错误代码,在本例中为 Windows 套接字错误 10053。该错误消息的描述如下:

An established connection was aborted by the software in your host computer, possibly due to a data transmission time-out or protocol error.

这意味着您可能遇到了超时或其他网络问题。由于您使用的是 Windows,这些问题通常是由第三方防病毒和防火墙程序引起的,它们是 Git 问题的常见来源,还有网络代理或监控软件。您可以尝试完全卸载这些软件中的任何一个并重新启动,这可能会解决问题,或者如果您有网络代理,请在没有它​​的情况下从其他网络尝试 运行。

您也可以尝试使用 WSL 2,它通常会绕过标准 Windows 网络并可能避免很多此类问题。

否则,这可能只是一个普通的网络问题,需要标准的故障排除步骤。正如您所建议的那样,increasing http.postBuffer 无济于事,因为只有当您的 HTTP 设置已知损坏时才有效。

我遇到了同样的问题,我尝试增加 http 和 https 的缓冲区大小,但没有用,我最终做的是

git push --force

这有效。

我通过将提交分成几个部分来克服这个错误。 如果您的提交非常大,这可能是解决方案。

我遇到了同样的问题,因为我的提交有很大的 csv 文件。为了解决这个问题,我首先将我的 repo 切换为使用 ssh 推送,但是在尝试上传大文件时并没有解决问题,git 推荐我使用 https://git-lfs.github.com/

git-lfs-migrate 之后迁移我的 csv 文件后,我能够毫无问题地推送。我希望这对您有所帮助,问候。