目录

国内加速访问Github

GitHub 镜像访问

1. https://help.kkgithub.com/

2. https://gitclone.com/

网站的内容与GitHub完整同步,可进行下载克隆等操作。

GitHub 文件加速

1. https://gh.api.99988866.xyz/

2. http://toolwa.com/github/

切换DNS服务器

可以将DNS更换为1.0.0.1或者8.8.4.4

8.8.4.4解析github.com为20.205.243.166[新加坡 微软云]

1.0.0.1解析github.com为192.30.255.113

如果不想修改DNS服务器,也可以设置浏览器DoH加密DNS,具体方法

相关 DoH 服务器地址,可以通过 https://dns.icoa.cn这个页面找到。

修改HOST文件

根据https://tool.chinaz.com/dns/github.com获取你所在地区可以PING通的IP进行填写。

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
#github
20.205.243.166 github.com
20.205.243.166 gist.github.com
20.205.243.166 assets-cdn.github.com
20.205.243.166 raw.githubusercontent.com
20.205.243.166 gist.githubusercontent.com
20.205.243.166 cloud.githubusercontent.com
20.205.243.166 camo.githubusercontent.com
20.205.243.166 avatars0.githubusercontent.com
20.205.243.166 avatars1.githubusercontent.com
20.205.243.166 avatars2.githubusercontent.com
20.205.243.166 avatars3.githubusercontent.com
20.205.243.166 avatars4.githubusercontent.com
20.205.243.166 avatars5.githubusercontent.com
20.205.243.166 avatars6.githubusercontent.com
20.205.243.166 avatars7.githubusercontent.com
20.205.243.166 avatars8.githubusercontent.com
# GitHub End

保存,打开cmd 输入ipconfig /flushdns 刷新DNS缓存.

结束语

以上方案为均来自网络,结合操作实验整理而成,后两种方法即使正常使用后,github.com也可能间隙性无法访问,一般上午正常,午后无法稳定访问,可能是服务器带宽有限或者防火墙原因。