git config proxy

Failed to connect to chromium.googlesource.com port 443: Operation timed out

git config --global https.proxy http://127.0.0.1:1086
git config --global https.proxy https://127.0.0.1:1086
git config --global http.proxy 'socks5://127.0.0.1:1086'
git config --global https.proxy 'socks5://127.0.0.1:1086'

为什么端口号是1086呢?这个每个人的代理可能不一样,如果是ss的话,是在ss->偏好设置->高级->本地socks5

取消设置代理:

git config --global --unset http.proxy
git config --global --unset https.proxy

你可能感兴趣的:(git config proxy)