Git Client Global Configuration
If you frequently clone open-source repositories from GitHub, typing gh-proxy.org manually every time can become tedious. By leveraging Git native insteadOf configuration, your local Git client can automatically rewrite and route all GitHub repository requests through the accelerated proxy.
One-Command Setup
Run the following command in your terminal to enable global acceleration:
git config --global url."https://gh-proxy.org/https://github.com/".insteadOf "https://github.com/"
Verify Configuration
Once configured, clone any repository using standard GitHub URLs as usual. The request will be rewritten automatically:
git clone https://github.com/torvalds/linux.git
Git will transparently pull through https://gh-proxy.org/https://github.com/torvalds/linux.git with full line speed.
Revert / Disable Acceleration
If you ever wish to disable the proxy and restore direct connections:
git config --global --unset url."https://gh-proxy.org/https://github.com/".insteadOf
💬 Community Feedback
Scroll down to load comments
(or click here to load immediately)