Adding a module
git submodule add <repo> /path/to/clone
Clone a repo with modules
git clone --recurse-submodules <repo>
Or, run the following after cloning
git submodules update --init --recursive
1 min read
git submodule add <repo> /path/to/clone
git clone --recurse-submodules <repo>
Or, run the following after cloning
git submodules update --init --recursive