mac 在使用 git clone 下载很慢,甚至出现错误:RPC 失败。curl 18 transfer closed with outstanding read data remaining

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值