I try to push some file to Github and total size is only 22.2M. I don't know why it stuck after the total line. I've read the Git push hangs when pushing to Github? and tried each answer but it doesn't work at all. Does it works fine? Do I have any method to accelerate this process?
Counting objects: 203, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (176/176), done.
Writing objects: 100% (203/203), 22.12 MiB | 15.70 MiB/s, done.
Total 203 (delta 23), reused 0 (delta 0)
I encountered the same issue on one of my repos when trying to push a number of larger commits at once. Multiple attempts wouldn't proceed past the Total output row. I first tried a couple of things suggested in other questions:
git config --global http.postBuffer 150000000 (~150MB)Neither seemed to help. Git push still wouldn't get past the 'Total' line in the terminal, no matter how long I waited.
Solution: After taking a precautionary backup, I issued the garbage collection command to the repo:
git gc
The next git push then worked immediately.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With