
Github 代理 https ssh 速度起飞
很多时候我们在使用 github 的时候会出现下载很慢的情况。
如果你有代理,可以直接设置代理,来获取更快下载和上传资源的速度。
HTTP & HTTPS 代理
端口号根据自己的代理端口进行修改,一般 ss 是 1080,Clash 是 7891
1 | git config --global http.proxy 'socks5://127.0.0.1:7891' |
也可以直接修改用户主目录下的 .gitconfig
文件
vim ~/.gitconfig
1 | [http] |
SSH 代理
打开用户主目录下的 .ssh/config
文件,添加以下内容
vim ~/.ssh/config
1 | Host github.com |
- Thanks for your appreciation. / 感谢您的赞赏
赞赏名单
Because of your support, I realize the value of writing articles. / 由于您的支持,我才能够实现写作的价值。
本文是原创文章,采用CC BY-NC-SA 4.0协议,完整转载请注明来自Go知行
评论