1. 查看设置网络代理的端口号
这里提供两种查看代理设置的端口号的方法:
- 通过使用的应用程序查看端口号

- 通过电脑的网络代理设置查看端口号

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