有的时候我们明明已经打开了Clash,甚至开启了全局模式,为什么git clone还是会超时?
1. 报错示例:
fatal: unable to access xxx
Failed to connect to huggingface.co port 443 after 21288 ms:
Couldn't connect to server
错误原因
git的流量默认是不走clash的,因此需要手动修改其配置。
解决方案
打开 git bash,输入下面的指令进行配置,其中最后四个数字是端口号,根据自己的实际情况(我这里的是8880)进行配置。
git config --global http.proxy http: