查看代理命令
git config --global --list
或
git config --global http.proxy
git config --global https.proxy
設(shè)置代理
git config --global http.proxy http://proxyhost:port
git config --global https.proxy https://proxyhost:port
或(帶用戶密碼)
git config --global http.proxy http://user:password@proxyhost:port
git config --global https.proxy https://user:password@proxyhost:port
取消代理
git config --global --unset http.proxy
git config --global --unset https.proxy