唯的博客

  • 首页
  • 旧的
YUIのBLOG
我的小窝
  1. 首页
  2. 旧的
  3. 正文

如何快速访问GitHub?

2021年10月10日 6点热度 0人点赞 0条评论

由于某些原因,GitHub在国内的处境很艰难,前前后后被墙了好几次,那么如何快速安全访问GitHub呢?

[title]一.GitHub镜像网站[/title]

https://github.com.cnpmjs.org/
https://hub.fastgit.org/

进去逛逛,下下文件就行了,进行不建议登录。
[title]二.修改hosts文件[/title]

复制下面的内容

# GitHub520 Host Start
140.82.114.26                 alive.github.com
140.82.113.25                 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.108.133               camo.githubusercontent.com
185.199.108.133               github.map.fastly.net
199.232.69.194                github.global.ssl.fastly.net
140.82.113.4                  gist.github.com
185.199.108.153               github.io
140.82.114.4                  github.com
192.0.66.2                    github.blog
140.82.114.5                  api.github.com
185.199.108.133               raw.githubusercontent.com
185.199.108.133               user-images.githubusercontent.com
185.199.108.133               favicons.githubusercontent.com
185.199.108.133               avatars5.githubusercontent.com
185.199.108.133               avatars4.githubusercontent.com
185.199.108.133               avatars3.githubusercontent.com
185.199.108.133               avatars2.githubusercontent.com
185.199.108.133               avatars1.githubusercontent.com
185.199.108.133               avatars0.githubusercontent.com
185.199.108.133               avatars.githubusercontent.com
140.82.114.10                 codeload.github.com
52.216.109.107                github-cloud.s3.amazonaws.com
52.216.86.51                  github-com.s3.amazonaws.com
52.217.89.156                 github-production-release-asset-2e65be.s3.amazonaws.com
52.217.193.25                 github-production-user-asset-6210df.s3.amazonaws.com
52.216.187.91                 github-production-repository-file-5c1aeb.s3.amazonaws.com
185.199.108.153               githubstatus.com
64.71.144.202                 github.community
23.100.27.125                 github.dev
185.199.108.133               media.githubusercontent.com


# Update time: 2021-10-10T14:06:01+08:00
# Update url: https://raw.hellogithub.com/hosts
# Star me: https://github.com/521xueweihan/GitHub520
# GitHub520 Host End

上面内容会自动定时更新,保证最新有效。数据更新时间:2021-10-10T14:06:01+08:00(内容无变动不会更新)

文件:https://raw.hellogithub.com/hosts
JSON:https://raw.hellogithub.com/hosts.json
hosts 文件在每个系统的位置不一,详情如下:

Windows 系统:C:\Windows\System32\drivers\etc\hosts
Linux 系统:/etc/hosts
Mac(苹果电脑)系统:/etc/hosts
Android(安卓)系统:/system/etc/hosts
iPhone(iOS)系统:/etc/hosts

修改方法,把第一步的内容复制到文本末尾:

Windows 使用记事本。
Linux、Mac 使用 Root 权限:sudo vi /etc/hosts。
iPhone、iPad 须越狱、Android 必须要 root。
修改之后重启机器即可

[title]三.梯子[/title]

详见如何选一个好梯子?

标签: GitHub VPN 教程 精品资源分享 翻墙 长城防火墙
最后更新:2026年10月16日

YUI

这个人很懒,什么都没留下

点赞
< 上一篇
下一篇 >

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

归档

  • 2026 年 10 月
  • 2025 年 12 月
  • 2022 年 6 月
  • 2022 年 5 月
  • 2022 年 3 月
  • 2022 年 2 月
  • 2022 年 1 月
  • 2021 年 11 月
  • 2021 年 10 月

分类

  • 教程
  • 旧的
  • 未分类

COPYRIGHT © 2026 唯的博客. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang