分享

Git上传失败 RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1)

Git上传的时候出现错误

error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1)
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
Everything up-to-date

网上找了解决办法,不知道是否有效,先记录下来

修改git的config设置

方式一:修改config文件,添加如下配置

[http]
  postBuffer = 524288000

方式二:通过命令添加配置

git config http.postBuffer 524288000

发表评论

电子邮件地址不会被公开。