git 提交 报错

之前一直是使用vscode来提交代码,但是今天在提交代码的时候发现报这个错误,

curl 92 HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1)

随即让同事尝试了下,发现他们的都没问题,自己的一直都有问题


网上搜索了下,大部分都是说更改缓存,使用这个命令

git config http.postBuffer 524288000

更改之后还是无效,

然后使用命令行来提交代码

Enumerating objects: 74, done.
Counting objects: 100% (65/65), done.
Delta compression using up to 4 threads
Compressing objects: 100% (40/40), done.
Writing objects: 100% (44/44), 133.66 KiB | 8.35 MiB/s, done.
Total 44 (delta 23), reused 0 (delta 0)
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

请问下大家有没有遇到过这个问题

阅读 9.5k
3 个回答

新建了个文件夹 重新使用

git clone

解决问题了
问题莫名其妙的就解决了

自己搭建的git仓库 使用的http2协议把 HTTP/2 与 Proxy-Connection 响应头头不兼容

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进