# githubHost **Repository Path**: nitrohe/githubHost ## Basic Information - **Project Name**: githubHost - **Description**: update github hosts/git clone加速 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-01-31 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 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命令即可 ;