Skip to content

nitrohe/githubHost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

github Host

github代码clone加速, 查找域名对应的ip地址,并修改hosts文件;

windows

get host

使用cmd脚本nscmd.bat获取github host 或者单独执行以下cmd命令

nslookup github.com
nslookup github.global.ssl.fastly.net

写入到hosts文件中

SwitchHosts set

SwitchHosts 软件设置远程 hosts更新规则 https://gitee.com/nitrohe/githubHost/raw/master/hosts (使用的是码云上的hosts文件,防止github ip更新时获取不到)

备用https://raw.githubusercontent.com/nitrohe/githubHost/master/hosts

manually set

手动更新文件C:\Windows\System32\drivers\etc\hosts

刷新DNS缓存

在cmd中输入ipconfig /flushdns命令即可 ;