Cloning a Git repository which contains Sub modules
Nov 18, 2018
If you are a new collaborator joining the project, you’d start by running git clone to download the contents of the repository. At this point if you peek inside the sub-module folder, you’d see nothing. Git expects us to explicitly ask it to download the sub-module’s contents. For that you can use below commands:
For Git Versions 1.6.5 and later :git clone --recursive git://github.com/foo/bar.git
From Git Versions 1.9 and up to 2.12 :
…
Kindly check https://community.geekgong.com/d/12-cloning-a-git-repository-with-sub-modules/ for the complete article.
Thanks.