执行这两行命令, 端口号改成自己代理服务器的端口 (我的是7890)
git config --global https.proxy 127.0.0.1:7890 git config --global http.proxy 127.0.0.1:7890