经验分享

只需修改hosts轻松解决github打不开问题

精准像素 2022-05-14 人阅读

使用方法

访问 https://hosts.gitcdn.top/hosts.txt,或将下面全部内容粘贴到你的hosts文件中,即可。

# fetch-github-hosts begin
140.82.114.26               alive.github.com
140.82.114.26               live.github.com
185.199.108.154             github.githubassets.com
140.82.112.21               central.github.com
185.199.108.133             desktop.githubusercontent.com
185.199.108.153             assets-cdn.github.com
185.199.109.133             camo.githubusercontent.com
185.199.109.133             github.map.fastly.net
151.101.229.194             github.global.ssl.fastly.net
13.114.40.48                gist.github.com
185.199.110.153             github.io
13.114.40.48                github.com
192.0.66.2                  github.blog
18.179.245.253              api.github.com
185.199.109.133             raw.githubusercontent.com
185.199.108.133             user-images.githubusercontent.com
185.199.109.133             favicons.githubusercontent.com
185.199.110.133             avatars5.githubusercontent.com
185.199.110.133             avatars4.githubusercontent.com
185.199.109.133             avatars3.githubusercontent.com
185.199.109.133             avatars2.githubusercontent.com
185.199.109.133             avatars1.githubusercontent.com
185.199.109.133             avatars0.githubusercontent.com
185.199.110.133             avatars.githubusercontent.com
13.112.159.149              codeload.github.com
52.217.44.188               github-cloud.s3.amazonaws.com
52.217.44.188               github-com.s3.amazonaws.com
52.217.44.188               github-production-release-asset-2e65be.s3.amazonaws.com
52.217.44.180               github-production-user-asset-6210df.s3.amazonaws.com
52.217.44.180               github-production-repository-file-5c1aeb.s3.amazonaws.com
185.199.110.153             githubstatus.com
64.71.144.211               github.community
52.237.112.130              github.dev
140.82.114.22               collector.github.com
13.107.42.16                pipelines.actions.githubusercontent.com
185.199.111.133             media.githubusercontent.com
185.199.111.133             cloud.githubusercontent.com
185.199.108.133             objects.githubusercontent.com
# last fetch time: 2022-05-14T14:30:49+08:00
# update url: https://hosts.gitcdn.top/hosts.txt
# fetch-github-hosts end

Linux / MacOS hosts路径:/etc/hosts

Windows hosts路径:C:\Windows\System32\drivers\etc\hosts

Unix/Linux:

sed -i "/# fetch-github-hosts begin/Q" /etc/hosts && curl https://hosts.gitcdn.top/hosts.txt >> /etc/hosts


相关推荐
  • GitHub
  • GitHub全面封杀YouTube-dl
    GitHub全面封杀YouTube-dl

    YouTube-dl是什么YouTube-dl是一款万能下载神器,它能够从全网七百多个网站免费下载视频,包括YouTube、优酷、爱奇艺、B站等热门网站;它还可以把视频内容转成任意的格式,包括创建仅包含视频音轨的 Mp3...

    网络新闻 330 1年前
  • 疑似B站后台源代码泄露 GitHub平台已删除

    4月22日下午,据微博大V@互联网的那点事 爆料称,哔哩哔哩(B站)整个网站后台工程源码泄露。目前,源代码已被移除。据了解,这段源代码被公布在GitHub平台上,但并不是托管在B站的官方组织域之下,而是由“openbilibili”的用户创建,代码库名为“go-common”。根据...

    网络新闻 187 3年前
  • GitHub收购JavaScript开发者平台npm

    GitHub收购JavaScript开发者平台npm,宣布此项交易时,GitHub 首席执行官 Nat Friedman 表示:我们将 GitHub 与 npm 集成在一起,以提高开源软件供应链的安全性,并使你能够跟踪从 GitHub 拉取请求到 npm 软件包版本的变化。他进一步补充说:GitHub 赞助商已经...

    网络新闻 118 2年前