git add submodule branch code example
Example 1: git update submodule recursive
git submodule update --init --recursive
Example 2: git add submodule branch
git submodule add -b branch_name URL_to_Git_repo optional_directory_rename
Example 3: git checkout branch and update submodules
git checkout --recurse-submodule