github:文件夹名字+@+数字子模块下载
执行git clone https://github.com.cnpmjs.org/CMU-Perceptual-Computing-Lab/openpose后,克隆到本地后根目录下有个3rdpart目录,因为此目录链接了其他的github目录,因此只执行git clone后,caffe和pybind11文件是空的。需要进入到下载的根目录,执行子模块下载命令。git submodule updat
·
执行git clone https://github.com.cnpmjs.org/CMU-Perceptual-Computing-Lab/openpose后,克隆到本地后根目录下有个3rdpart目录,因为此目录链接了其他的github目录,因此只执行git clone后,caffe和pybind11文件是空的。

需要进入到下载的根目录,执行子模块下载命令。
git submodule update --init --recursive
如果子模块的下载速度比较慢,可以打开根目录下的.gitmodules文件,修改下载链接。
同步子模块信息
git submodule sync
重新下载子模块
git submodule update --init --recursive
参考资料
github上使用git clone下载所有链接到的子模块
github中文件夹后面跟@+数字什么意思?为什么git clone下来里面是空的?
github下载慢的解决方法
解决git submodule update下载子模块时报 Permission denied 错误
更多推荐

所有评论(0)