ghosts

command module
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2022 License: MIT Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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模式下推拉代码。

使用方法

1、如果已经配置好go开发环境,则直接使用go install安装:

go install github.com/moqsien/ghosts

ghosts // ghost.exe on windows

2、二进制安装文件:

下载

下载完成后,可以自行设置环境变量,或者将二进制文件移动到已在环境变量中的目录下。

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkgs
cmd
gh

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址