飞蓬各自远,且尽手中杯。——李白《鲁郡东石门送杜二甫》
- 目前国内可用镜像
https://github.com.cnpmjs.org
# 服务器位于香港
https://gitclone.com
# 服务器位于杭州
https://doc.fastgit.org
# 服务器位于香港
在进行替换之前请先进入网站查看对应的替换命令,不同的网站替换方式不同。
使用全局参数,更改 git 参数
git config --global url."https://gitclone.com/github.com/".insteadOf "https://github.com/"
使用全局参数更改以后,使用 vim ~/.gitconfig 命令即可查看当前的配置文件,看到以下配置。
[url "https://url you choose"]
insteadOf = https://github.com/