【已解决】git push 问题 "send-pack: unexpected disconnect while reading sideband packet"

Git报错

  • git push推送代码时出现如下报错

error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500
send-pack: unexpected disconnect while reading sideband packet
fatal: the remote end hung up unexpectedly

git 缓冲区不足报错

解决

使用命令git config --global http.postBuffer 1048576000将 Git 通信缓冲区大小设置为1G

其他

  • 如调整通信缓冲区未能解决问题。可使用下方命令打印详细信息分析和搜索解决方案。

GIT_TRACE=1 GIT_CURL_VERBOSE=1

posted @ 2025-09-11 11:36  愤怒的蒲公英  阅读(98)  评论(0)    收藏  举报