mac 在使用 git clone 下载很慢,甚至出现错误:RPC 失败。curl 18 transfer closed with outstanding read data remaining
错误:预期仍然需要 822 个字节的正文
fetch-pack: unexpected disconnect while reading sideband packet
致命错误:过早的文件结束符(EOF)
致命错误:fetch-pack:无效的 index-pack 输出 报错
假如使用了梯子,一定不要怀疑,就是梯子的原因,要么关闭梯子,要么修改代理
使用 HTTP/HTTPS 代理
替换为你的代理地址和端口(如 ClashX/Surge 默认端口)
git config --global http.proxy http://127.0.0.1:7890
git config --global https.proxy https://127.0.0.1:7890
使用 SOCKS5 代理(如 Shadowsocks)
git config --global http.proxy socks5://127.0.0.1:1080
git config --global https.proxy socks5://127.0.0.1:1080
取消代理
git config --global --unset http.proxy
git config --global --unset https.proxy