解决GitHub无法访问
一、访问github
1、方案一:固定修改hosts(不推荐,访问慢)
win7的hosts文件中:
C:\Windows\System32\drivers\etc\hosts
追加如下内容:
# Github Hosts # Update 20211204 # domain: github.com 140.82.114.4 github.com 140.82.114.10 nodeload.github.com 140.82.114.6 api.github.com 140.82.114.10 codeload.github.com 185.199.108.133 raw.github.com 185.199.108.153 training.github.com 185.199.108.153 assets-cdn.github.com 185.199.108.153 documentcloud.github.com 185.199.108.154 help.github.com # domain: githubstatus.com 185.199.108.153 githubstatus.com # domain: fastly.net 199.232.69.194 github.global.ssl.fastly.net # domain: githubusercontent.com 185.199.108.133 raw.githubusercontent.com 185.199.108.154 pkg-containers.githubusercontent.com 185.199.108.133 cloud.githubusercontent.com 185.199.108.133 gist.githubusercontent.com 185.199.108.133 marketplace-screenshots.githubusercontent.com 185.199.108.133 repository-images.githubusercontent.com 185.199.108.133 user-images.githubusercontent.com 185.199.108.133 desktop.githubusercontent.com 185.199.108.133 avatars.githubusercontent.com 185.199.108.133 avatars0.githubusercontent.com 185.199.108.133 avatars1.githubusercontent.com 185.199.108.133 avatars2.githubusercontent.com 185.199.108.133 avatars3.githubusercontent.com 185.199.108.133 avatars4.githubusercontent.com 185.199.108.133 avatars5.githubusercontent.com 185.199.108.133 avatars6.githubusercontent.com 185.199.108.133 avatars7.githubusercontent.com 185.199.108.133 avatars8.githubusercontent.com # End of the section
测试访问:
https://github.com/dragonir/3d/tree/master/src/containers/Olympic
参考
https://zhuanlan.zhihu.com/p/107334179?ivk_sa=1024320u
2、方案二:动态修改hosts(强烈推荐,访问快)
获取github.global.ssl.fastly.net的IP:如,199.232.69.194
https://ipaddress.com/website/github.global.ssl.fastly.net#ipinfo、
获取github.com的IP:如,140.82.112.3
https://ipaddress.com/website/github.com#ipinfo
199.232.69.194 github.global.ssl.fastly.net
140.82.112.3 github.com
参考:https://zhuanlan.zhihu.com/p/248356236?utm_source=qq
二、加速下载github
1、加速1:gitclone.com(强烈推荐,下载快)
请使用 git clone https://gitclone.com/github.com/xxx 加速克隆
例如:
git clone https://gitclone.com/github.com/DuGuQiuBai/Java.git
2、加速2:gh.api.99988866.xyz
GitHub 文件加速
https://gh.api.99988866.xyz/
分支源码:
https://github.com/hunshcn/project/archive/master.zip
主发布源码:
https://github.com/dragonir/3d/archive/refs/heads/master.zip
3、镜像网站
相关文章
- springcloud seata_seata github
- Github 突然给 Trending 热榜判了「死刑」!倒计时 30 天
- pycharm的库安装不成功_pycharm上传github
- 将代码(含密钥)上传 Github“开源” 5 年:296019 个客户信息泄漏
- Ubuntu解决Github无法访问的问题
- 你的连接不是专用连接 攻击者可能试图从 github.com 窃取你的信息 通过修改DNS连接解决无法连接问题
- 使用Hexo和Github搭建个人博客
- 微软旗下GitHub宣布裁员10%;谷歌高管警告:AI聊天机器人会产生错觉;华为称在ChatGPT领域早有布局丨每日大事件
- 叹息!GitHub Trending 即将成为历史!
- 无需服务器的GitHub实时漏洞利用工具监听器,目前支持微信/TG推送,中文版 Github-CVE-Listener
- 加速国内Github 访问和下载的9种方案,第1个就起飞了
- 再见了,SVN!GitHub 宣布将淘汰 Subversion 支持
- 【错误记录】GitHub 提交报错 ( OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443 )
- github 解决推拉代码提示 REMOTE HOST IDENTIFICATION HAS CHANGED 失败
- Git在windows下上传文件至github流程详解程序员
- 用物理设备保护你的账号,GitHub 宣布支持 U2F