GitHub 輕鬆提速教程(下載)

GitHub是一個面向開源及私有軟件項目的託管平臺,由於只支持Git做爲惟一的版本庫格式進行託管,故名GitHub,在天朝Github默認被限速了,咱們能夠經過修改hosts文件來提速,不只能夠提高下載速度,還能夠顯示出我的頭像等圖標,能夠方便開發者查閱文檔與開心的編碼。node

1.手動訪問 https://www.ipaddress.com/ 網址,而後依次獲取如下三個網址的IPgit

github.com
github.global.ssl.fastly.net
codeload.github.com

這是我獲取的IP 地址,你也能夠本身去找,通常只須要找github.com 的地址就能夠提速了。github

192.30.253.112 github.com
151.101.25.194 github.global.ssl.fastly.net
192.30.253.121 codeload.github.com
151.101.185.194 github.global.ssl.fastly.net
151.101.112.133 assets-cdn.github.com
192.30.253.117 api.github.com
172.217.21.110 www.google-analytics.com
192.30.253.124 live.github.com
140.82.112.9 codeload.github.com

修改系統本地 C:\Windows\System32\drivers\etc\hosts hosts 文件添加上面的查詢記錄到文件裏。api

刷新DNS緩存,執行命令 ipconfig /flushdns 再次下載文件,會發現速度提高了。緩存

有時候Github圖標沒法徹底顯示,通常是被污染了。添加咱們找好的地址到 hosts文件中便可。服務器

151.101.184.133    assets-cdn.github.com
151.101.184.133    raw.githubusercontent.com
151.101.184.133    gist.githubusercontent.com
151.101.184.133    cloud.githubusercontent.com
151.101.184.133    camo.githubusercontent.com
151.101.184.133    avatars0.githubusercontent.com
151.101.184.133    avatars1.githubusercontent.com
151.101.184.133    avatars2.githubusercontent.com
151.101.184.133    avatars3.githubusercontent.com
151.101.184.133    avatars4.githubusercontent.com
151.101.184.133    avatars5.githubusercontent.com
151.101.184.133    avatars6.githubusercontent.com
151.101.184.133    avatars7.githubusercontent.com
151.101.184.133    avatars8.githubusercontent.com

添加上 avatar.githubusercontent.com 圖片緩存服務器地址以後,就能夠正常加載各類圖標圖片資源了。google

下載文件的速度也會變得很快。編碼


2019-12-31 地址更新記錄.net

151.101.44.249 http://github.global.ssl.fastly.net
192.30.253.113 http://github.com
103.245.222.133 http://assets-cdn.github.com
23.235.47.133 http://assets-cdn.github.com
203.208.39.104 http://assets-cdn.github.com
204.232.175.78 http://documentcloud.github.com
204.232.175.94 http://gist.github.com
107.21.116.220 http://help.github.com
207.97.227.252 http://nodeload.github.com
192.30.253.121 http://codeload.github.com
199.27.76.130 http://raw.github.com
107.22.3.110 http://status.github.com
204.232.175.78 http://training.github.com
207.97.227.243 http://www.github.com
185.31.16.184 http://github.global.ssl.fastly.net
185.31.18.133 http://avatars0.githubusercontent.com
185.31.19.133 http://avatars1.githubusercontent.com
相關文章
相關標籤/搜索