对于 git, 只需要用下面的明亮就可以了
git config --global https.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
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
但是如果是vscode,同样也是通过首选项->设置->搜索proxy,然后可以输入上面的proxy。速度就飞了。。当然,自备梯子
网友评论