Git clone too slow to solve the problem

The reason the problems we know everything.
There are two main methods to solve, one is to change the host but personally feel bad results.
Another is to set up a proxy, the premise is that you use a proxy sour milk.
In this case, use the following command can be, be noted that 1080 is the port, the need to open the agent software to know, windows and ubuntu is generally 1080, mac may be 1086

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

Or open the file sudo gedit .gitconfig, not to create one, copy the following,

[https "https://github.com"]
	proxy = https://127.0.0.1:1080
[http "https://github.com"]
	proxy = socks5://127.0.0.1:1080

To this effect as with the above.

Reference links

Published 95 original articles · won praise 30 · views 40000 +

Guess you like

Origin blog.csdn.net/JohnJim0/article/details/105228842