In recent days, I encountered a problem, that is, git directly set up the proxy does not take effect, and the speed is very slow.

The Settings are as follows

git config --global --unset http.proxy git config --global --unset https.proxy git config --global http.proxy Git config --global http. proxy 127.0.0.1:< HTTP proxy address > git config --global http.sslVerify "false"Copy the code

And I’m using a global proxy, so I can’t possibly fail. But it just doesn’t work.

Then I found a solution, special notes:

vi ~/.ssh/config

ProxyCommand connect -s 127.0.0.1:< your HTTP proxy > %h %pCopy the code

The speed has been increased to 7m/s instead of 0KB…