如何加速访问 GitHub

1. 查看设置网络代理的端口号

这里提供两种查看代理设置的端口号的方法:

  • 通过使用的应用程序查看端口号
    Clash for windows
  • 通过电脑的网络代理设置查看端口号

Settings

2. 设置

git config --global http.proxy socks5://127.0.0.1:7890
git config --global https.proxy socks5://127.0.0.1:7890

3. 取消设置

git config --global --unset http.proxy
git config --global --unset https.proxy

猜你喜欢

转载自blog.csdn.net/My_CSDN_IT/article/details/113931145