GitHub
作為全球最大的****網(wǎng)站,GitHub可謂是又愛(ài)又恨,愛(ài)的是太多非常棒的開(kāi)源項(xiàng)目了,有很大的參考價(jià)值,也方便我們自己托管項(xiàng)目,恨的是這個(gè)網(wǎng)站的訪問(wèn)實(shí)在是太不給力了,基本是隨緣了,不同城市不同網(wǎng)絡(luò)都各不相同,用寬帶,手機(jī)流量也各不相同,大部分是不怎么好的。最近發(fā)現(xiàn)一個(gè)叫做Fetch Github Hosts的項(xiàng)目,也許能幫到大家,這里只針對(duì)網(wǎng)絡(luò)不好的同學(xué)哈,fetch-github-hosts是主要為解決研究及學(xué)習(xí)人員訪問(wèn)Github過(guò)慢或其他問(wèn)題而提供的免費(fèi)的Github hosts同步服務(wù),項(xiàng)目開(kāi)源,有寫具體的使用方法,有需要的同學(xué)可以前往學(xué)習(xí)一下。
簡(jiǎn)單粗暴的方法
手動(dòng)添加hosts
訪問(wèn)https://hosts.gitcdn.top/hosts.txt這個(gè)網(wǎng)站,將網(wǎng)頁(yè)的全部?jī)?nèi)容粘貼到你的hosts文件中。
Linux / MacOS hosts路徑:/etc/hostsWindows hosts路徑:C:\Windows\System32\drivers\etc\host
這里也順便貼出來(lái),大家復(fù)制即可:
# fetch-github-hosts begin140.82.112.26 alive.github.com140.82.112.26 live.github.com185.199.108.154 github.githubassets.com140.82.112.21 central.github.com185.199.111.133 desktop.githubusercontent.com185.199.109.153 assets-cdn.github.com185.199.108.133 camo.githubusercontent.com185.199.108.133 github.map.fastly.net146.75.113.194 github.global.ssl.fastly.net52.192.72.89 gist.github.com185.199.108.153 github.io52.192.72.89 github.com192.0.66.2 github.blog52.69.239.207 api.github.com185.199.109.133 raw.githubusercontent.com185.199.109.133 user-images.githubusercontent.com185.199.111.133 favicons.githubusercontent.com185.199.109.133 avatars5.githubusercontent.com185.199.109.133 avatars4.githubusercontent.com185.199.109.133 avatars3.githubusercontent.com185.199.108.133 avatars2.githubusercontent.com185.199.109.133 avatars1.githubusercontent.com185.199.111.133 avatars0.githubusercontent.com185.199.111.133 avatars.githubusercontent.com52.193.111.178 codeload.github.com52.216.177.203 github-cloud.s3.amazonaws.com52.216.177.203 github-com.s3.amazonaws.com52.217.91.148 github-production-release-asset-2e65be.s3.amazonaws.com52.217.91.148 github-production-user-asset-6210df.s3.amazonaws.com52.217.91.148 github-production-repository-file-5c1aeb.s3.amazonaws.com185.199.109.153 githubstatus.com64.71.144.211 github.community52.237.112.130 github.dev140.82.112.21 collector.github.com13.107.42.16 pipelines.actions.githubusercontent.com185.199.108.133 media.githubusercontent.com185.199.108.133 cloud.githubusercontent.com185.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之后,直接保存不了,保存的時(shí)候先另存在桌面,再拖進(jìn)去覆蓋即可!
刷新生效:
Linux: /etc/init.d/network restartWindows: ipconfig /flushdnsMacos: sudo killall -HUP mDNSResponder
試試訪問(wèn)效果
開(kāi)源倉(cāng)庫(kù):
https://github.com/Licoy/fetch-github-hosts
-
GitHub
+關(guān)注
關(guān)注
3文章
481瀏覽量
17356
發(fā)布評(píng)論請(qǐng)先 登錄
FPGA的Jtag接口燒了,怎么辦?

一招治“浮”! 高精度3D線激光輪廓測(cè)量?jī)x保障螺絲裝配

教你三招異地訪問(wèn)NAS

存儲(chǔ)空間告急?NAS擴(kuò)容一招搞定,輕松無(wú)憂!

信號(hào)噪聲太大怎么辦
遲滯比較器的速度慢怎么解決
ESP32外掛FLASH下載速度慢怎么解決?
電機(jī)速度慢電流會(huì)大么還是小
調(diào)速電機(jī)速度慢了不快怎么原因造成的
無(wú)需公網(wǎng)IP、無(wú)需云服務(wù)器,實(shí)現(xiàn)遠(yuǎn)程直連NAS該怎么做?
STM32MP135 linux SPI多字節(jié)時(shí)鐘連續(xù)沒(méi)有間隔是怎么回事?
教你一招,一鍵解鎖云盤與NAS自動(dòng)同步!

評(píng)論