在使用github下载开源项目的时候,由于Github的站点在国外,访问起来会超级卡,卡成狗。所以通过ssr设置代理访问,速度就会超级快。
需要准备的东西
- git命令行
- ShadowsocksR可以访问外网
步骤
1.针对github地址设置代理
git config --global http.https://github.com.proxy http://127.0.0.1:10800
git config --global https.https://github.com.proxy https://127.0.0.1:10800
# 查看配置
git config -l
2.设置ShadowsocksR代理
3.去克隆喜欢的Github项目
注意:这里使用https开头的连接,不要使用git开头的。
git clone https://github.com/88250/solo.git
4.如果不需要的时候将代理还原
git config --global --unset http.proxy
git config --global --unset https.proxy
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。