Git clone Error: RPC failed; curl 18 transfer closed with outstanding read data remaining

Git clone RPC failed; Curl 18 transfer closed with outstanding read data remaining error

Cause 1: buffer overflow

Solution: command line input

git config http.postBuffer 524288000

If the clone fails after executing the above command, consider possible cause 2: slow network download speed

Solution: command line input

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

If the clone still fails, first shallow clone, and then update the remote library locally

git clone --depth=1 http://gitlab.xxx.cn/yyy/zzz.git
git fetch --unshallow

Similar Posts: