ARTICLE DETAIL

资讯详情

深耕网站建设、视觉设计与SEO优化的一线实战洞察。

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

【已解决】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 config --global http.postBuffer 1048576000将 Git 通信缓冲区大小设置为1G

其他

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

GIT_TRACE=1 GIT_CURL_VERBOSE=1

返回列表