【问题标题】:error: RPC failed; curl 18 transfer closed with outstanding read data remaining错误:RPC 失败; curl 18 传输已关闭,剩余未完成的读取数据
【发布时间】:2021-04-21 18:14:21
【问题描述】:

git push 命令对我不起作用。

首先我尝试了$ git push -u origin master

Enumerating objects: 416, done.
Counting objects: 100% (416/416), done.
Delta compression using up to 4 threads
Compressing objects: 100% (214/214), done.
Writing objects: 100% (416/416), 36.52 MiB | 159.14 MiB/s, done.
Total 416 (delta 200), reused 416 (delta 200), pack-reused 0
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
send-pack: unexpected disconnect while reading sideband packet
fatal: the remote end hung up unexpectedly
Everything up-to-date

我试过git config --global http.postBuffer 524288000

  $ git status
  On branch master
  nothing to commit, working tree clean

为什么我不能让git push 工作?

【问题讨论】:

  • 由于这个错误,我无法推送到 github,请尽快帮助我
  • should not use http.postBuffer unless you're sure you need it,因为它浪费了很多内存。
  • 另外,您使用的是什么操作系统?您有第三方防火墙或防病毒软件吗?您是否在网络上使用代理或 SSL MITM 设备?

标签: git github repository git-push


【解决方案1】:

将 Git 缓冲区大小增加到存储库的最大单个文件大小:

git config --global http.postBuffer

【讨论】:

    猜你喜欢
    • 2021-04-09
    • 2020-07-07
    • 2019-09-13
    • 2016-12-01
    • 2010-12-18
    • 1970-01-01
    • 1970-01-01
    • 2021-01-03
    相关资源
    最近更新 更多