Git 全局配置
# 让所有 https://github.com/ 的克隆走加速
git config --global url."https://gh-proxy.cn/github/https://github.com/".insteadOf "https://github.com/"
# 验证
git clone https://github.com/git/git.git
也可以直接写在 ~/.gitconfig 中:
[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