Git Clone

git clone https://gh-proxy.cn/github/https://github.com/git/git.git

只对单次命令生效

git -c url."https://gh-proxy.cn/github/https://github.com/".insteadOf="https://github.com/" clone https://github.com/git/git.git

全局配置

git config --global url."https://gh-proxy.cn/github/https://github.com/".insteadOf "https://github.com/"

取消:

git config --global --unset url."https://gh-proxy.cn/github/https://github.com/".insteadOf

代理实现了 Git HTTP Smart Protocol,git-upload-pack 的 POST 请求体会被完整流式转发。

最后更新:2026-09-20 21:53:37