前言

  • 利用镜像下载
  • 通过代理网站下载
  • Gitee直达fork仓库下载
  • 批改 HOSTS 文件进行减速
  • 梯子(略)

文章公布我的集体网站,并且浏览体验更好

  • 油猴插件
  • Github 加强 - 高速下载

GithubGit CloneReleaseRawCode(ZIP) 等文件增加 高速下载(减速下载)。

第二种 装置GitHub减速插件

  • GitHub减速

提供ReleaseCode(ZIP) tag文件减速。

通过代理网站下载

Release、Code(ZIP) 文件减速:

  • https://gh.api.99988866.xyz
  • https://github.rc1844.workers...
  • https://ghgo.feizhuqwq.worker...
  • https://git.yumenaka.net
  • https://github.com.cnpmjs.org
  • https://mirror.ghproxy.com/
  • https://ghproxy.com/
  • https://toolwa.com/github/

Git Clone 减速:

  • https://github.do
  • https://gitclone.com
  • https://hub.fastgit.xyz
  • https://ghproxy.com
  • https://hub.0z.gs

具体哪个速度快,请自行找一些大文件来测速。

Gitee直达fork仓库下载

拜访 gitee 网站并登录,在顶部抉择“从 GitHub/GitLab 导入仓库” 如下

在页面中粘贴你的Github仓库地址,点击导入即可


导入胜利,git clone仓库,下载速度能够达到2MB/s,就是有点麻烦。

批改HOSTS文件进行减速

自从 2021.3 月初某会开始,很多地区曾经间歇性无法访问 Github 了。
这种状况无论是改 DNS 还是改 Hosts 都没用,因为对 Github 域名 SNI 烦扰/封闭,任意 IP 指向 Github 去拜访时,该 IP 的 443 端口就会超时 3 分钟!
因为是随机烦扰的,所以有时候会碰到 “短暂” 可用的 IP

有趣味能够看看这篇具体解说剖析的文章:https://www.v2ex.com/t/758568

所以批改HOSTS文件进行减速办法是否还无效,能够自测。

  • SwitchHosts -批改HOSTS小工具

定时同步

增加一条规定:

  • 计划名:GitHub
  • 类型:近程
  • URL 地址:https://gitee.com/ineo6/hosts/raw/master/hosts
  • 自动更新:1个小时

刷新DNS缓存

关上终端,输出对应命令

// Mac用户sudo killall -HUP mDNSResponder// Winipconfig /flushdns
原文地址:https://github.com/ineo6/hosts

有趣味能够阅读文章SwitchHosts! 还能这样治理 hosts,悔恨没早点用 理解详情,外面有介绍以及各个平台刷新 DNS 缓存的办法。

参考

  • https://github.com/ineo6/hosts
  • https://www.beiwangshan.com/2...
  • https://greasyfork.org/zh-CN/...