How to fix git error: RPC failed; curl 56 GnuTLS How to fix git error: RPC failed; curl 56 GnuTLS git git

How to fix git error: RPC failed; curl 56 GnuTLS


The accepted answer from @harlequin might work, but I spend 2 hours and could not build git package from source code.

However, Check the below link as this works for me.

The remote end hung up unexpectedly while git cloning

just update the http post buffer value

git config --global http.postBuffer 1048576000


After reading your posts, I solved it simply by

apt install gnutls-bin


To solve this issue:

Rebuilding git with openssl instead of gnutls fixed my problem.

I followed these instructions