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:緩存區溢出

解決方法:命令行輸入

git config http.postBuffer 524288000

執行上面命令如果依舊clone失敗,考慮可能原因2:網絡下載速度緩慢

解決方法:命令行輸入

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

 如果依舊clone失敗,則首先淺層clone,然后更新遠程庫到本地

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

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM