commit another git repo not submodule code example
Example 1: git clone submodule
git clone --recurse-submodules
Example 2: git checkout branch and update submodules
git checkout --recurse-submodule
git clone --recurse-submodules
git checkout --recurse-submodule