Skip to content

Instantly share code, notes, and snippets.

@tzuhsun
Created January 30, 2024 11:06
Show Gist options
  • Save tzuhsun/5e6a75c4a678ed0c63aee56f6f0c02f7 to your computer and use it in GitHub Desktop.
Save tzuhsun/5e6a75c4a678ed0c63aee56f6f0c02f7 to your computer and use it in GitHub Desktop.
'git push' error if the total files > 30
In 'git push' command, if the total files > 30, most likely will encounter error below:
==============================
Just anecdotally, I ran into this problem today with curl 8.0.1.0 on Windows 11, version 22H2. I was trying to push a commit involving ~30 files to an existing branch of an ADO repo, and the error output was:
Total 96 (delta 61), reused 0 (delta 0), pack-reused 0
error: RPC failed; curl 56 HTTP/2 stream 7 was reset
send-pack: unexpected disconnect while reading sideband packet
fatal: the remote end hung up unexpectedly
I then tested pushing a trivial change as a new branch with no problem. I also tested pushing a trivial change to a different existing branch, no problem.
My fix was to do git config --global http.version HTTP/1.1, push, then git config --global http.version HTTP/2.
==============================
https://github.com/curl/curl/issues/11353#issuecomment-1687169241
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment