git timeout 报错443解决方法

参考链接
解决方法
- 查看代理的端口号(clash 的 General 菜单中,默认为7890)
- 查看并取消 git 的 http 和 https 代理
1
2
3
4
5
6
7
8
9// 首先,查一下当前全局的 http 代理:
git config --global http.proxy
// 如果有代理,就取消
git config --global --unset http.proxy
// 再查 https 的代理:
git config --global https.proxy
// 同样的,有就取消
git config --global --unset https.proxy - 设置代理
1
2
3//设置git端口号和上面的端口号保持一致
git config --global http.proxy http://127.0.0.1:7890
git config --global https.proxy https://127.0.0.1:7890