git clone時RPC failed; curl 18 transfer closed with outstanding read data remaining
git clone時報RPC failed; curl 18 transfer closed with outstanding read data remaining 錯誤
原因1:緩存區(qū)溢出
解決方法:命令行輸入
git config http.postBuffer 524288000
執(zhí)行上面命令如果依舊clone失敗苇瓣,考慮可能原因2:網(wǎng)絡(luò)下載速度緩慢
解決方法:命令行輸入
git config --global http.lowSpeedLimit 0
git config --global http.lowSpeedTime 999999
如果依舊clone失敗套硼,則首先淺層clone喊积,然后更新遠(yuǎn)程庫到本地
git clone --depth=1 http://gitlab.xxx.cn/yyy/zzz.git
git fetch --unshallow