https://github.com/moqsien/ghosts
ghosts will automatically get dns info and modify your hosts to accelerate your github visits.
https://github.com/moqsien/ghosts
Last synced: about 1 year ago
JSON representation
ghosts will automatically get dns info and modify your hosts to accelerate your github visits.
- Host: GitHub
- URL: https://github.com/moqsien/ghosts
- Owner: moqsien
- License: mit
- Created: 2022-09-25T13:23:38.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-10-23T17:06:54.000Z (over 3 years ago)
- Last Synced: 2024-06-20T15:49:38.884Z (about 2 years ago)
- Language: Go
- Size: 25.4 KB
- Stars: 4
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: ReadMe.md
- License: LICENSE
Awesome Lists containing this project
README
### ghosts
----------------
获取dns并自动修改和备份hosts文件,加速github访问。
支持Linux、MacOS、Windows、FreeBSD。
### 背景
目前github加速访问,主要有以下几种方式:
1、修改hosts;
2、加速工具,如dev-sidecar, fastgithub,watt toolkit等;
3、github镜像;
4、梯子;
其中,现有的hosts修改方案总是建议用额外的hosts修改软件,加速工具多不支持ssh,镜像不稳定,梯子一般需要付费。
ghosts可作为加速工具的补充,只在需要的时候手动运行一次,就可以自动备份和修改hosts文件,从而加速github ssh模式下推拉代码。
同时可通过以配置文件的方式设置过滤条件,ping参数等,从而获取到更高质量的hosts。
### 使用方法
1、如果已经配置好go开发环境,则直接使用go install安装:
```shell
go install github.com/moqsien/ghosts@latest
ghosts help // 这个命令可以让你看到ghosts目前提供了哪些功能
```
2、二进制安装文件:
[下载](https://github.com/moqsien/ghosts/releases/tag/v0.0.2)
下载完成后,可以自行设置环境变量,或者将二进制文件移动到已在环境变量中的目录下。
### License
[MIT](https://github.com/moqsien/ghosts/blob/main/LICENSE)