git clone 慢並且會中斷

liyongjie發表於2024-06-27

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

相關文章