git submodule update or git pull code example
Example 1: git pull with submodules
git pull --recurse-submodules
Example 2: git update all submodules
git submodule update --recursive --remote
Example 3: git checkout branch and update submodules
git checkout --recurse-submodule
Example 4: Fetch submodules recursively
#! Fetch and update submodules into an existing project
git submodule update --init --recursive