1、根据代理软件的具体端口,设置全局代理。
//sock5代理 git config --global http.proxy 'socks5://127.0.0.1:7890' git config --global https.proxy 'socks5://127.0.0.1:7890' //http git config --global http.proxy http://127.0.0.1:7890 //https git config --global https.proxy https://127.0.0.1:7890
2、删除全局代理。
git config --global --unset http.proxy git config --global --unset https.proxy
3、查看已有代理配置。
git config --global -l