I am trying to clone a large repo from Amazon CodeCommit with some of the files exceeding 50mb each and no matter how many times I repeat the cloning it always gives me an error of:
error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54 fatal: the remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed
The solution is to increase the http.postBuffer size in the git global config file. Just navigate into a new or existing repository root folder in your local computer by using Command Prompt in Windows, Terminal in Mac and Linux and enter this line:
git config --global http.postBuffer 2147483648
Check if the value of the http.postBuffer size by typing:
git config --get http.postBuffer
Then try to clone the large repo again to see if the cloning now finishes until the end.