Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git push hangs (forever) and git-remote-https uses 99.5% CPU

I'm trying to git push a small project (712kb not taking into account the .git folder) to a new repo, hosted on Google Source Repositories, and the push never finishes. It stops right after printing the Total message (hangs for at least hours).

Enumerating objects: 77, done.
Counting objects: 100% (77/77), done.
Delta compression using up to 8 threads
Compressing objects: 100% (71/71), done.
Writing objects: 100% (77/77), 131.62 KiB | 6.93 MiB/s, done.
Total 77 (delta 12), reused 0 (delta 0)

The only workaround was to split the commit into two smaller commits (no specific files need to be separated into the second commit; any random files do the trick). This confirms that it's not an auth issue. But it's not a real solution.

None of the answers I've found fix the issue. I'm mainly referring to :

  • increase http.postBuffer size (https://stackoverflow.com/a/6849424/1403417)
  • update the git version (to use git latest version instead of Apple XCode's one)

I'm looking for other ideas to identify a proper solution to this issue.

like image 262
nfonrose Avatar asked Sep 03 '26 18:09

nfonrose


1 Answers

Maybe you could try to lower the size of http.postBuffer instead of increasing it. I remember it did the trick for me when I faced the same problem

like image 158
MatthieuGD Avatar answered Sep 07 '26 05:09

MatthieuGD



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!