error: RPC failed; curl 18 transfer closed with outstanding read data remaining

1、 Increase the cache size
git config — global http.postbuffer 524288000
this is about 500m

2、 Less clones, – depth 1
git clone –Depth 1
– depth 1 means that the copy depth is 1, that is, each file only takes the latest submission, not the entire historical version
3. Change the protocol
clone HTTP mode to SSH mode, that is, HTTPS:// is changed to git://
for example, GIT clone
Change to git clone git://

Similar Posts: