[github]——Clone the warehouse with submodule

Preface

I came across a warehouse with files like this:
Insert picture description here

Clone a repository with Submodule

Clone the entire project:

git clone 你要克隆的项目
cd 你克隆了的项目
git submodule // 查看submodule的状态

>-一串hash码 文件目录

The minus sign in front means:

The submodule has not been checked out

So to check out the submodule:

git submodule init
>Submodule ...
git submodule update
>Cloning into ...

reference

Yunshui-a complete tutorial on using Git Submodule

Guess you like

Origin blog.csdn.net/jokerxsy/article/details/114685444