https://github.com/lib-pack/ghseek
这是一个github加速器通过hosts实现
https://github.com/lib-pack/ghseek
github hosts
Last synced: 6 days ago
JSON representation
这是一个github加速器通过hosts实现
- Host: GitHub
- URL: https://github.com/lib-pack/ghseek
- Owner: lib-pack
- License: mit
- Created: 2024-01-19T05:19:05.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2026-03-27T01:40:31.000Z (17 days ago)
- Last Synced: 2026-03-27T14:13:37.570Z (16 days ago)
- Topics: github, hosts
- Language: TypeScript
- Homepage:
- Size: 73.2 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
Ghseek
这是一个github加速器通过hosts实现
## Feature
- 下载克隆 github 资源加速
- Github DNS 加速支持
- gist DNS 加速支持
## Usage
> 注意目前只支持 linux、macos 系统。
```shell
npm i -g ghseek
```
```shell
ghseek seek # 更新本地的 hosts 文件来加速 github 的 push、pull、clone 等操作
ghseek clone [目录位置] # 加速克隆代码
ghseek down [文件名称] # 加速下载github文件,github url可以是 release url、raw url
```
## Append Hosts
添加的 hosts 类似于下面的内容,IP是通过 https://sites.ipaddress.com 获取的最新 DNS IP.
```
# ghseek github
140.82.112.3 github.com
151.101.65.194 github.global.ssl.fastly.net
185.199.109.133 raw.githubusercontent.com
140.82.112.4 gist.github.com
185.199.109.133 camo.githubusercontent.com
140.82.112.22 collector.github.com
140.82.114.5 api.github.com
185.199.109.133 avatars.githubusercontent.com
185.199.109.133 raw.github.com
# ghseek end
```
## Contributors
> 💙 This package was templated with [`create-typescript-app`](https://github.com/JoshuaKGoldberg/create-typescript-app).