小技巧——解决Github项目clone慢的问题

设置github的项目git命令走sock代理

git config --global http.https://github.com.proxy socks5://127.0.0.1:1086(sock端口号)

取消代理
git config --global --unset http.https://github.com.proxy

设置之前:

设置之后:

PS:注意复制的github项目链接要使用https而不是ssh

猜你喜欢

转载自www.cnblogs.com/JohnTsai/p/11483440.html