I have committed my work and I want to push it on my repo on the github
but the push fails and this error is displayed:
error: RPC failed; curl 55 SSL_write() returned SYSCALL, errno = 32
fatal: the remote end hung up unexpectedly
Total 10 (delta 3), reused 0 (delta 0)
fatal: the remote end hung up unexpectedly
Done
How can I solve it?
Check first if your work you just committed made your repository too big to be pushed to GitHub.
You can use a tool like github/git-sizer to get an idea of what is taking so much space.
If you see an element too large which should not be there, try and delete it (after you now .gitignore
it, but it would still be part of your past commit history)
For that, use git filter-repo
(that I mentioned here).
Install it first. (python3 -m pip install --user git-filter-repo
)
Then, for example:
git filter-repo --strip-blobs-bigger-than 10M
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