github clone 代码

西门逸仙
2023-12-01

本教程仅仅只适用于github获取code,不可用于其他用途,对于host的更新不涉及任何非法操作。ok ?

git code

  1. 获取git 定时更新
    https://gitee.com/fliu2476/github-hosts处获取最新hosts
    效果如下
# Generated by Github Hosts start 

185.199.108.154   github.githubassets.com
140.82.112.21     central.github.com
185.199.111.133   desktop.githubusercontent.com
185.199.108.153   assets-cdn.github.com
185.199.110.133   camo.githubusercontent.com
185.199.108.133   github.map.fastly.net
146.75.105.194    github.global.ssl.fastly.net
140.82.112.3      gist.github.com
185.199.111.153   github.io
140.82.114.3      github.com
140.82.112.5      api.github.com
185.199.109.133   raw.githubusercontent.com
185.199.109.133   user-images.githubusercontent.com
185.199.108.133   favicons.githubusercontent.com
185.199.109.133   avatars5.githubusercontent.com
185.199.109.133   avatars4.githubusercontent.com
185.199.108.133   avatars3.githubusercontent.com
185.199.108.133   avatars2.githubusercontent.com
185.199.109.133   avatars1.githubusercontent.com
185.199.108.133   avatars0.githubusercontent.com
185.199.109.133   avatars.githubusercontent.com
140.82.112.10     codeload.github.com
52.217.133.249    github-cloud.s3.amazonaws.com
54.231.135.185    github-com.s3.amazonaws.com
52.217.112.169    github-production-release-asset-2e65be.s3.amazonaws.com
54.231.129.25     github-production-user-asset-6210df.s3.amazonaws.com
52.216.221.217    github-production-repository-file-5c1aeb.s3.amazonaws.com
185.199.110.153   githubstatus.com
140.82.114.18     github.community
185.199.110.133   media.githubusercontent.com

# Last update: 4/5/2023, 8:53:54 AM
# Please star: https://github.com/fliu2476/gh-hosts.git
# Generated by Github Hosts end
  1. 使用上文件替换本机host
sudo vi /etc/hosts

or

sudo gedit /etc/hosts
  1. 刷新网络
sudo apt install nscd

sudo /etc/init.d/nscd restart

 类似资料: