git配置socks5代理
git config --global http.proxy 'socks5://127.0.0.1:7070'
To disable the proxy, run command:
git config --global --unset http.proxy
扩展阅读
According to the document, despite the name http
.proxy
, it should work for both HTTP and HTTPS repository urls.