GitHub 是经常的打不开,有时候克隆一个库很久都不下载不下来,很多时候都是超时无法下载,这种情况下我们只有挂代理提高访问速度。
如果 socks5(SSR),你需要知道你本地的 socks5 代理 ip 地址和端口,默认打开的话就是 127.0.0.1 端口 1080,然后使用此命令设置代理
git config --global http.https://github.com.proxy socks5://127.0.0.1:1080
git config --global https.https://github.com.proxy socks5://127.0.0.1:1080
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 --unset http.proxy
git config --global --unset https.proxy
