目录

方法一:git clone --recursive 

方法二:git submodule update --init


有时github上的工程可能会包含一些子模块,例如

 这时候如果你只是用下面的命令下载,

​git clone https://github.com/Cambricon/CNStream

下载完之后会发现easydk文件夹是空的,有两种方法下载子模块

方法一:git clone --recursive 

​git clone --recursive https://github.com/Cambricon/CNStream

方法二:git submodule update --init

​git clone https://github.com/Cambricon/CNStream
cd CNStream
git submodule update --init  --recursive
Logo

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

更多推荐