1.GitHub 镜像访问
镜像地址(克隆版的 GitHub,,也可以找下其他镜像地址):
https://github.com.cnpmjs.org
内容跟 GitHub 是完整同步的镜像,同样可以进行下载克隆等操作。
2. GitHub 文件加速
利用 Cloudflare Workers 对 github release 、archive 以及项目文件进行加速,部署无需服务器且自带CDN.
可以查看开源项目:gh-proxy-GitHub(https://hunsh.net/archives/23/) 文件加速自行部署。
3. Github 加速下载
地址:https://toolwa.com/github/
使用方法:
打开你要下载的 GitHub 仓库页面
点击右侧的绿色按钮 “Code” > “Download ZIP”
等浏览器弹出下载框后复制下载框中的链接地址并粘贴到以上输入框
点击加速下载
4. 谷歌浏览器 GitHub 加速插件(推荐)
在线安装不便的,推荐搜索安装这个谷歌浏览器插件
5. 通过修改 HOSTS 文件进行加速 手动把cdn和ip地址绑定。
第一步:获取 github 的 global.ssl.fastly 地址
访问:http://github.global.ssl.fastly.net.ipaddress.com/#ipinfo
获取cdn和ip域名得到:
199.232.69.194 https://github.global.ssl.fastly.net
第二步:获取github.com地址
访问:https://github.com.ipaddress.com/#ipinfo
获取cdn和ip:得到:
140.82.114.4 http://github.com
第三步:修改 host 文件映射上面查找到的 IP,将下列内容加入 hosts文件中:
199.232.69.194 github.global.ssl.fastly.net
140.82.114.4 github.com
linux位置:
/etc/hosts
windows位置:
C:\Windows\System32\drivers\etc\hosts
第四步:刷新DNS缓存
linux:
sudo /etc/init.d/networking restart
windows:
ipconfig /flushdns