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 请求体会被完整流式转发。