To clone a repo that contains submodules we can run the following command

$ git clone --recurse-submodules <repo-url>

Or if you’ve already cloned a repo only to later discover that it contained submodules

$ git submodule update --init --recursive