error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function

created at 10-01-2021 views: 2

git clone failed

The error is as follows:

error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.
fatal: The remote end hung up unexpectedly
fatal: Premature end of file (EOF)
fatal: index-pack failed

solution 1

The cache is not enough, increase the cache, the unit is b, 524288000 about 500m

git config --global http.postBuffer 524288000

solution 2

The download speed is limited, modify the download speed

git config --global http.lowSpeedLimit 0
git config --global http.lowSpeedTime 999999

View the set value:

git config --list 

solution 3

Try to clone in a shallow layer, and then update the remote library to the local

git clone --depth=1 http://xxx.git
git fetch --unshallow
Please log in to leave a comment.