GitHub速度慢
2020-07-17 本文已影响0人
半个木头人
github上的代码库访问速度慢,那么就知道真正的解决方案就是要加快git命令的速度。
我使用Shadowsocks代理,默认代理端口为1086,查看端口如下:
![](https://img.haomeiwen.com/i6054535/593e58886b1b8259.png)
配置好代理之后去终端输入git配置命令,开启翻墙代理,电脑连手机4g热点,命令如下
git config --globalhttp.proxy socks5://127.0.0.1:1086git config --globalhttp.https://github.com.proxy socks5://127.0.0.1:1086
更新的时候,速度可达到1M/S ,更新完,可以直接通过下面的命令恢复
git config --global--unset http.proxy
git config --global--unset http.https://github.com.proxy
当然,也可以直接打开.gitconfig文件,删除掉正面的两行配置
![](https://img.haomeiwen.com/i6054535/1137a0f91e27b3a9.png)