git clone with specific module version code example
Example 1: git pull onbly submodule
git submodule update --remote <path to the submodule>
Example 2: git clone submodules
# This will clone a repo with all submodules included
git clone --recurse-submodules https://github.com/<org>/<repo>.git