Github速度太慢?5种方法让速度起飞!

由于伟大的GFW,世界上最大的同性交友网站——Github在中国大陆地区的访问速度很慢,有没有什么简单且无需TZ的方法来快速访问Github呢?(明知故问😏😏)

KGithub镜像

Kgithub是一个支持Github登陆的镜像,允许在线修改代码,但不允许注册。

使用起来很方便,你只需要在github.com前面加个K就行了。

类似将:

1
https://github.com/facebook/react

改为:

1
https://kgithub.com/facebook/react

Fastgit 镜像

Fastgit是一个快速方便的Github镜像,你只需要对访问的Github地址进行修改,便可以启用Fastgit.

镜像地址:hub.fastgit.xyz

类似将

1
https://github.com/facebook/react

改为:

1
https://hub.fastgit.xyz/facebook/react

使用起来很方便😁😁

同样,这也是 Git Clone的地址。

文件加速·ghproxy

你只需要打开https://ghproxy.com/
输入你的文件地址,就可以加速文件的下载。

或者使用下面这样的形式加速:

1
https://ghproxy.com/{Github_File_URL}

你还可以安装这样使用 Git Clone:

1
git clone https://ghproxy.com/https://github.com/facebook/react

注意: 请不要滥用加速!

Jsdelivr 加速

虽说Jsdelivr的CDN主域名 cdn.jsdelivr.net已被DNS污染,也就是被墙,但是各CDN节点的域名暂未被墙,所以你可以使用Jsdelivr的Fastly节点:

例如:

1
https://fastly.jsdelivr.net/gh/facebook/react/

或者使用其他节点:

1
2
3
Gcore: gcore.jsdelivr.net
CloudFlare:test1.jsdelivr.net
CloudFlare:testingcf.jsdelivr.net

修改Host/DNS加速

521xueweihan/GitHub520是一个github加速项目,你只需要修改Host即可加速Github。

Host文件:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# GitHub520 Host Start
140.82.113.26 alive.github.com
140.82.114.25 live.github.com
185.199.108.154 github.githubassets.com
140.82.113.21 central.github.com
185.199.108.133 desktop.githubusercontent.com
185.199.108.153 assets-cdn.github.com
185.199.108.133 camo.githubusercontent.com
185.199.108.133 github.map.fastly.net
199.232.69.194 github.global.ssl.fastly.net
140.82.112.4 gist.github.com
185.199.108.153 github.io
140.82.112.4 github.com
192.0.66.2 github.blog
140.82.113.5 api.github.com
185.199.108.133 raw.githubusercontent.com
185.199.108.133 user-images.githubusercontent.com
185.199.108.133 favicons.githubusercontent.com
185.199.108.133 avatars5.githubusercontent.com
185.199.108.133 avatars4.githubusercontent.com
185.199.108.133 avatars3.githubusercontent.com
185.199.108.133 avatars2.githubusercontent.com
185.199.108.133 avatars1.githubusercontent.com
185.199.108.133 avatars0.githubusercontent.com
185.199.108.133 avatars.githubusercontent.com
140.82.113.10 codeload.github.com
52.216.30.76 github-cloud.s3.amazonaws.com
52.217.110.172 github-com.s3.amazonaws.com
52.217.139.33 github-production-release-asset-2e65be.s3.amazonaws.com
52.216.140.204 github-production-user-asset-6210df.s3.amazonaws.com
52.217.138.33 github-production-repository-file-5c1aeb.s3.amazonaws.com
185.199.108.153 githubstatus.com
64.71.144.211 github.community
23.100.27.125 github.dev
140.82.114.21 collector.github.com
13.107.42.16 pipelines.actions.githubusercontent.com
185.199.108.133 media.githubusercontent.com
185.199.108.133 cloud.githubusercontent.com
185.199.108.133 objects.githubusercontent.com
13.107.213.51 vscode.dev


# Update time: 2022-07-02T11:17:56+08:00
# Update url: https://raw.hellogithub.com/hosts
# Star me: https://github.com/521xueweihan/GitHub520
# GitHub520 Host End

当然,手机/Linux如果没有Root权限,IOS没有越狱的话是无法修改Host文件的,这里介绍一个比较好的方法——使用 Dnspod Public Dns进行自定义解析。

1.打开Dnspod公共解析控制台

2.开通免费版公共解析。

3.选择自定义解析,按照以下图片添加:添加解析

安卓9.0以上手机使用找到【设置】【网络和互联网】 【高级】 【私人 DNS】,选择“私人 DNS 提供商主机名”选项,输入 你的 DNS over TLS地址 然后点击保存即可。

安卓9.0以下手机,请下载Intra,并在设置中填入你的 DNS over HTTPS地址,连接即可。


Github速度太慢?5种方法让速度起飞!
https://blog.inkdust.top/github-speed-up.html
作者
墨尘
发布于
2022年7月2日
许可协议