[github] git clone 速度慢或者递归下载不下来
在你需要clone的github网址前添加一个代理网址https://ghproxy.com/即可。
如下,当我想下载一个代码https://github.com/limbo018/DREAMPlace.git,且该仓库需要递归子仓库下载,直接下载是行不通的,加上这个网址即可
git clone --recursive https://ghproxy.com/https://github.com/limbo018/DREAMPlace.git
如果递归下载还是失败,可以尝试使用下面的方法:
- 进入项目主目录
- 编辑.gitmodules文件
- 将其中的url按前文方法修改
- 运行指令
git submodule sync
更新子模块下载地址 - 运行指令
git submodule update --init --recursive
下载子模块