github 代理加速
git config --global url."https://github.com.cnpmjs.org/".insteadOf "https://github.com/"
查看git配置信息
git config --global --list
[root@centos7 arm]# git clone https://github.com/bwalex/armininion.git Cloning into 'armininion'... fatal: unable to access 'https://github.com.cnpmjs.org/bwalex/armininion.git/': Could not resolve host: github.com.cnpmjs.org; Unknown error [root@centos7 arm]# git config --global --list url.https://github.com.cnpmjs.org/.insteadof=https://github.com/ [root@centos7 arm]#
取消设置
git config --global --unset url.https://github.com/.insteadof
[root@centos7 arm]# git config --global --unset url."https://github.com.cnpmjs.org/.insteadof" [root@centos7 arm]# git config --global --list [root@centos7 arm]#
国内加速Github的几种方案
浙公网安备 33010602011771号