git上传代码提示以下错误

Enumerating objects: 144, done.
Counting objects: 100% (123/123), done.
Delta compression using up to 12 threads
Compressing objects: 100% (61/61), done.
Writing objects: 100% (84/84), 158.44 KiB | 7.54 MiB/s, done.
Total 84 (delta 45), 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

解决方案:

其主要原因是:error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1)

运行下面命令即可

git config --global http.version HTTP/1.1 

如果是因为文件过大则运行下面命令

git config --global http.postBuffer 524288000

 

Logo

鸿蒙生态一站式服务平台。

更多推荐