Skip to content

Instantly share code, notes, and snippets.

@hhhaiai
Forked from daopk/git-config-http-version.md
Created November 9, 2022 10:21
Show Gist options
  • Save hhhaiai/dfcd085eb24a8d6e0c0d2e3ed5e9d188 to your computer and use it in GitHub Desktop.
Save hhhaiai/dfcd085eb24a8d6e0c0d2e3ed5e9d188 to your computer and use it in GitHub Desktop.
Fix 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 157286400
@hhhaiai
Copy link
Author

hhhaiai commented Nov 9, 2022

RPC failed; curl 92 HTTP/2 stream 3 was not closed cleanly before end of the

Simple solution (reverts to http 2 after) :

git config --global http.version HTTP/1.1
git push
git config --global http.version HTTP/2

git config --global http.version HTTP/1.1
git config --global http.postBuffer 157286400

git config --global http.sslVerify "false"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment