git中的各种问题 - guogeWS/tools GitHub Wiki

不翻墙解决github clone 慢的问题

使用github的镜像网站进行访问,github.com.cnpmjs.org,我们将原本的网站中的github.com 进行替换。
例如:https://github.com/ArduPilot/ardupilot.git 替换为 https://github.com.cnpmjs.org/ArduPilot/ardupilot.git

下载子模块

git submodule update --init --recursive

出现下载失败

可以尝试取消代理
git config --global --unset http.proxy
git config --global --unset https.proxy
设置代理
git config --global https.proxy 'http://127.0.0.1:1080'
git config --global https.proxy 'https://127.0.0.1:1080'