To clone a repository with its submodules, you can use the following command:
git clone --recurse-submodules <repository-url>
If you have already cloned the repository without its submodules and want to add them later, you can use the following commands:
git submodule init
git submodule update
The first command initializes all the submodules in your repository by downloading their respective repositories. The second command updates the local code of each submodule according to its current commit.




