如何快速打开Github

为什么我们打开Github速度很慢?很卡,甚至于访问不了,原因是中间有个域名通过DNS解析的过程,将域名解析为对应的ip地址,主要时间都是花在了DNS解析上了。

我们在浏览器输入 GitHub 的网址时,会向 DNS 服务器发送一个请求,获取到 GitHub 网站所在的服务器 IP 地址,从而进行访问。如果 DNS 告诉了你错误的地址、或者请求被拦截、再或者 DNS 挂了,都会导致你无法访问网站。

可以通过修改 hosts 文件,解决: GitHub 访问速度慢的问题,推荐GitHub520
Windows 系统中的文件路径:C:\WINDOWS\system32\drivers\etc
Linux 系统中的文件路径:/etc/hosts

Github520,截至这篇文章发布之前,host文件内容:

# GitHub520 Host Start
140.82.112.25                 alive.github.com
140.82.112.5                  api.github.com
185.199.111.153               assets-cdn.github.com
185.199.111.133               avatars.githubusercontent.com
185.199.111.133               avatars0.githubusercontent.com
185.199.111.133               avatars1.githubusercontent.com
185.199.111.133               avatars2.githubusercontent.com
185.199.111.133               avatars3.githubusercontent.com
185.199.111.133               avatars4.githubusercontent.com
185.199.111.133               avatars5.githubusercontent.com
185.199.111.133               camo.githubusercontent.com
140.82.113.22                 central.github.com
185.199.111.133               cloud.githubusercontent.com
140.82.113.10                 codeload.github.com
140.82.113.21                 collector.github.com
185.199.111.133               desktop.githubusercontent.com
185.199.111.133               favicons.githubusercontent.com
140.82.113.4                  gist.github.com
52.217.64.44                  github-cloud.s3.amazonaws.com
52.217.196.73                 github-com.s3.amazonaws.com
16.182.69.25                  github-production-release-asset-2e65be.s3.amazonaws.com
16.182.66.193                 github-production-repository-file-5c1aeb.s3.amazonaws.com
52.216.38.233                 github-production-user-asset-6210df.s3.amazonaws.com
192.0.66.2                    github.blog
140.82.114.3                  github.com
140.82.114.17                 github.community
185.199.109.154               github.githubassets.com
151.101.1.194                 github.global.ssl.fastly.net
185.199.111.153               github.io
185.199.111.133               github.map.fastly.net
185.199.111.153               githubstatus.com
140.82.112.26                 live.github.com
185.199.111.133               media.githubusercontent.com
185.199.111.133               objects.githubusercontent.com
13.107.42.16                  pipelines.actions.githubusercontent.com
185.199.111.133               raw.githubusercontent.com
185.199.111.133               user-images.githubusercontent.com
13.107.253.40                 vscode.dev
140.82.113.21                 education.github.com

有时候尝试过手动修改host文件来解决网站的访问问题,及更换网络但还是有时候无法如愿的访问GitHub,这里推荐一个备用方案,FastGithub
在每次访问GitHub之前记得要先保证FastGithub在运行的状态,FastGitHub会自动更改你的DNS。

如果上述的方法都不行,我们可以换一种思路,使用镜像访问Github,推荐几个网站:

  • https://gitclone.com/
  • https://help.kkgithub.com/

上述方法如果仍然无法解决问题,我们可以尝试使用VPN,下面是一些推荐的网站:

  • https://sdkdns.github.io/
  • https://www.naiun.top/#/login

相关推荐

  1. 如何快速打开Github

    2024-04-13 06:44:08       16 阅读
  2. GitHub Copilot 快速入门

    2024-04-13 06:44:08       37 阅读
  3. GitHub Copilot 快速入门

    2024-04-13 06:44:08       37 阅读
  4. GitHub Copilot 快速入门

    2024-04-13 06:44:08       35 阅读

最近更新

  1. TCP协议是安全的吗?

    2024-04-13 06:44:08       18 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-04-13 06:44:08       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-04-13 06:44:08       18 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-04-13 06:44:08       20 阅读

热门阅读

  1. 【Android】【root & remount】adb su如何添加密码校验

    2024-04-13 06:44:08       19 阅读
  2. python连接mysql数据库通用类

    2024-04-13 06:44:08       17 阅读
  3. 小程序上拉触底节流处理

    2024-04-13 06:44:08       15 阅读
  4. 常用的限流算法原理与实现

    2024-04-13 06:44:08       55 阅读
  5. 【蓝桥杯】十六进制转八进制 C++实现

    2024-04-13 06:44:08       18 阅读
  6. 数据结构 -- 二叉树

    2024-04-13 06:44:08       15 阅读
  7. oracle表误删恢复

    2024-04-13 06:44:08       39 阅读
  8. npm install 报错权限问题

    2024-04-13 06:44:08       18 阅读
  9. SQL中的INNER JOIN与笛卡尔积:区别与实例详解

    2024-04-13 06:44:08       36 阅读
  10. 并查集(Union-Find)介绍

    2024-04-13 06:44:08       16 阅读