0

I recently created a repository on Github, and I get this error when I try to push to it.

$ git push -u origin master
Enumerating objects: 41, done.
Counting objects: 100% (41/41), done.
Delta compression using up to 4 threads
Compressing objects: 100% (38/38), done.
Writing objects: 100% (40/40), 182.00 MiB | 46.74 MiB/s, done.
Total 40 (delta 3), reused 27 (delta 0)
error: RPC failed; HTTP 408 curl 22 The requested URL returned error: 408
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly

I have tried the solutions listed in this answer and this answer, including:

  1. Using a different network connection - I'm using my home wired connection which is usually quite fast and low latency.

  2. git config http.postBuffer 524288000 or git config http.postBuffer 2000000000

  3. Running git gc --aggressive before the git push command

  4. Setting the low speed limit and low speed time before git push

     git config --global http.lowSpeedLimit 0
     git config --global http.lowSpeedTime 999999
    
  5. Using a thin pack, e.g., git push -u origin master --thin or the opposite git push -u origin master --not-thin

  6. git repack --max-pack-size=100M -a -d before the git push command.

I have been able to push other commits to this same repository on this same machine and internet connection, so I don't think it's a firewall issue. I'm using git 2.24.1 on Windows 10.

What else can I do here?

Michael A
  • 4,391
  • 8
  • 34
  • 61

0 Answers0