在使用git bash的时候经常因为github服务器问题连接不上,这个时候设置一个命令行的代理就ok了
git设置代理的命令:
git config --global https.proxy http://127.0.0.1:port
git config --global https.proxy https://127.0.0.1:port
git取消代理的命令
git config --global --unset http.proxy
git config --global --unset https.proxy