banner
年糕

年糕日记

此站为备份站点,最新文章请访问 oior.net
telegram
email

Linux uses gg to access GitHub in China.

Open Source Project#

Thank you to the technical expert for providing a useful tool!

Brief Operation#

Installation#

sudo sh -c "$(curl -L https://hubmirror.v2raya.org/raw/mzz2017/gg/main/release/go.sh)"

Test the installation status

gg --version
$ gg --version

gg version v0.2.11

Usage#

Configure your subscription address:

gg config -w subscription=https://example.com/path/to/sub

Or directly configure the node Base64

gg config -w node=vmess://MY_VMESS_SERVER_SHARE_LINK
gg curl ipv4.appspot.com

Output

53.141.112.10

Clone the Linux repository to try it out:

gg git clone --depth=1 https://github.com/torvalds/linux.git

Output:

Cloning into 'linux'...
...
Receiving objects: 100% (78822/78822), 212.19 MiB | 7.04 MiB/s, done.
Resolving deltas: 100% (7155/7155), done.

Or directly proxy the entire shell session:

gg bash

git clone --depth=1 https://github.com/torvalds/linux.git
curl ipv4.appspot.com

Uninstall#

Delete the configuration file

rm ~/.ggconfig.toml

Delete the executable file

rm /usr/local/bin/gg

Note: The above 2 commands require entering Y to complete the confirmation and delete.

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.