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 錯誤git

緣由1:緩存區溢出緩存

解決方法:命令行輸入網絡

git config http.postBuffer 524288000

執行上面命令若是依舊clone失敗,考慮可能緣由2:網絡下載速度緩慢curl

解決方法:命令行輸入gitlab

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

 若是依舊clone失敗,則首先淺層clone,而後更新遠程庫到本地post

git clone --depth=1 http://gitlab.xxx.cn/yyy/zzz.git
git fetch --unshallow
相關文章
相關標籤/搜索