When you clone a Git repository with submodules, you’ll realise that it does not bring down all of the branches and code for the associate submodules.
A few steps need to be taken.
Step 1: Clone the repository
git clone <your_repository_url>
Step 2: Init submodules
git submodule init
Step 3: Update submodules
git submodule update