git clone 慢并且会中断

error: RPC failed; curl 18 transfer closed with outstanding read data remaining
error: 2708 bytes of body are still expected

每次遇到这个问题还得去网上查,干脆记录下来

 

调整 Git 的超时和缓冲设置,即可解决

git config --global http.postBuffer 524288000
git config --global http.lowSpeedLimit 0
git config --global http.lowSpeedTime 999999
posted @ 2024-06-27 21:38  liyongjie  阅读(207)  评论(0编辑  收藏  举报