设置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

设置之前:
小技巧——解决Github项目clone慢的问题

设置之后:
小技巧——解决Github项目clone慢的问题

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

相关文章: