Skip to content

Commit

Permalink
docs: add README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Licoy committed May 13, 2022
1 parent a54746a commit 46453af
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
@@ -0,0 +1,20 @@
## 介绍
本项目主要为解决研究及学习人员访问`Github`过慢或其他问题而提供的免费的`Github hosts`同步服务。

本项目部分参考 [521xueweihan/Github520](https://github.com/521xueweihan/GitHub520),但与之不同的是前者是通过`ipaddress.com`获取`github.com``hosts`,而本项目是通过部署此项目的服务器来获取`github.com``hosts`,所以在IP节点上会存在一定的差异。

## 使用方法
### Unix/Linux
```shell
sed -i "/# fetch-github-host begin/Q" /etc/hosts && curl https://hosts.gitcdn.top/hosts.txt >> /etc/hosts
```
> 提示:可以设置定时任务定时获取更新即可
### Chrome
使用 [FasterHosts](https://github.com/gauseen/faster-hosts) 插件

### Windows/MacOS及其他桌面端
使用 [https://github.com/oldj/SwitchHosts](SwitchHosts) 程序,添加远程规则即可,远程地址为:https://hosts.gitcdn.top/hosts.txt

### 开源协议
GPL 3.0

0 comments on commit 46453af

Please sign in to comment.