GitHub
作為全球最大的同性交友網站,GitHub可謂是又愛又恨,愛的是太多非常棒的開源項目了,有很大的參考價值,也方便我們自己托管項目,恨的是這個網站的訪問實在是太不給力了,基本是隨緣了,不同城市不同網絡都各不相同,用寬帶,手機流量也各不相同,大部分是不怎么好的。 最近發現一個叫做Fetch Github Hosts的項目,也許能幫到大家,這里只針對網絡不好的同學哈,fetch-github-hosts是主要為解決研究及學習人員訪問Github過慢或其他問題而提供的免費的Github hosts同步服務,項目開源,有寫具體的使用方法,有需要的同學可以前往學習一下。簡單粗暴的方法
手動添加hosts 訪問https://hosts.gitcdn.top/hosts.txt這個網站,將網頁的全部內容粘貼到你的hosts文件中。
Linux / MacOS hosts路徑:/etc/hosts
Windows hosts路徑:C:WindowsSystem32driversetchost
老宇哥這里也順便貼出來,大家復制即可:
# fetch-github-hosts begin
140.82.112.26 alive.github.com
140.82.112.26 live.github.com
185.199.108.154 github.githubassets.com
140.82.112.21 central.github.com
185.199.111.133 desktop.githubusercontent.com
185.199.109.153 assets-cdn.github.com
185.199.108.133 camo.githubusercontent.com
185.199.108.133 github.map.fastly.net
146.75.113.194 github.global.ssl.fastly.net
52.192.72.89 gist.github.com
185.199.108.153 github.io
52.192.72.89 github.com
192.0.66.2 github.blog
52.69.239.207 api.github.com
185.199.109.133 raw.githubusercontent.com
185.199.109.133 user-images.githubusercontent.com
185.199.111.133 favicons.githubusercontent.com
185.199.109.133 avatars5.githubusercontent.com
185.199.109.133 avatars4.githubusercontent.com
185.199.109.133 avatars3.githubusercontent.com
185.199.108.133 avatars2.githubusercontent.com
185.199.109.133 avatars1.githubusercontent.com
185.199.111.133 avatars0.githubusercontent.com
185.199.111.133 avatars.githubusercontent.com
52.193.111.178 codeload.github.com
52.216.177.203 github-cloud.s3.amazonaws.com
52.216.177.203 github-com.s3.amazonaws.com
52.217.91.148 github-production-release-asset-2e65be.s3.amazonaws.com
52.217.91.148 github-production-user-asset-6210df.s3.amazonaws.com
52.217.91.148 github-production-repository-file-5c1aeb.s3.amazonaws.com
185.199.109.153 githubstatus.com
64.71.144.211 github.community
52.237.112.130 github.dev
140.82.112.21 collector.github.com
13.107.42.16 pipelines.actions.githubusercontent.com
185.199.108.133 media.githubusercontent.com
185.199.108.133 cloud.githubusercontent.com
185.199.108.133 objects.githubusercontent.com
# last fetch time: 2022-06-11T2302+08:00
# update url: https://hosts.gitcdn.top/hosts.txt
# fetch-github-hosts end
特別注意,在windows中,大家修改完hosts之后,直接保存不了,保存的時候先另存在桌面,再拖進去覆蓋即可!
刷新生效:
Linux: /etc/init.d/network restart
Windows: ipconfig /flushdns
Macos: sudo killall -HUP mDNSResponder
試試訪問效果
開源倉庫:https://github.com/Licoy/fetch-github-hosts
GitHub鏡像站或者使用Github鏡像站,國內可以加速訪問GitHub的網站(GitHub加速),使用起來和官網沒啥區別,只是域名不同而已。
-
https://hub.おうか.tw
-
https://hub.連接.臺灣
-
https://hub.fastgit.xyz
-
https://cdn.githubjs.cf
-
https://gitclone.com
-
開源
+關注
關注
3文章
3577瀏覽量
43426 -
GitHub
+關注
關注
3文章
481瀏覽量
17429
原文標題:提高訪問GitHub速度方法
文章出處:【微信號:strongerHuang,微信公眾號:strongerHuang】歡迎添加關注!文章轉載請注明出處。
發布評論請先 登錄
如何使用USB中斷傳輸方法訪問FPGA?
Windows Arm64托管運行器正式支持GitHub Actions
Arm推出GitHub Copilot新擴展程序
gitee 與 GitHub 的比較
如何提高信噪比的有效方法
GitHub Copilot與Bitbucket、Jira、Confluence集成使用指南

評論