github 加速办法
文章目录
github 加速办法
使用github镜像访问,访问镜像网站,网站的内容跟Github是完整同步的镜像,然后在这个网站里面进行下载克隆等操作, 两个最常用的镜像地址:
https://github.com.cnpmjs.org
https://hub.fastgit.org
// 替换
git config --global url."https://hub.fastgit.org".insteadOf https://github.com
// 查看git配置信息
git config --global --list
// 取消设置
git config --global --unset url.https://github.com/.insteadof