Github加速

转载:https://blog.csdn.net/networken/article/details/105122778

  • cnpmjs.org
    https://github.com.cnpmjs.org/

  • fastgit.org
    https://doc.fastgit.org/

  • gitclone.com
    https://gitclone.com/

  • 克隆加速

#原地址
git clone https://github.com/kubernetes/kubernetes.git

#改为
git clone https://github.com.cnpmjs.org/kubernetes/kubernetes.git

#或者
git clone https://hub.fastgit.org/kubernetes/kubernetes.git

#或者
git clone https://gitclone.com/github.com/kubernetes/kubernetes.git

  • release 下载加速
#原地址
wget https://github.com/goharbor/harbor/releases/download/v2.0.2/harbor-offline-installer-v2.0.2.tgz

#改为
wget https://hub.fastgit.org/goharbor/harbor/releases/download/v2.0.2/harbor-offline-installer-v2.0.2.tgz

  • 免替换方法
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
  • raw文件下载加速
#原地址:
wget https://raw.githubusercontent.com/kubernetes/kubernetes/master/README.md

#替换为
wget https://raw.s

你可能感兴趣的:(Github加速)