1. 在git bash中执行如下命令

1
2
git config --global http.proxy http://127.0.0.1:1080
git config --global https.proxy http://127.0.0.1:1080
1
2
git config --global --unset http.proxy 
git config --global --unset https.proxy 

2. 更改使用的vpn的端口

完成上述操作后即可安然在Git Bash中畅联Github啦。