执行git clone https://github.com.cnpmjs.org/CMU-Perceptual-Computing-Lab/openpose后,克隆到本地后根目录下有个3rdpart目录,因为此目录链接了其他的github目录,因此只执行git clone后,caffepybind11文件是空的。
在这里插入图片描述
在这里插入图片描述
需要进入到下载的根目录,执行子模块下载命令。

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 错误

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐