git working with submodules and branches code example
Example 1: git load all submodules
git submodule update --init --recursive
Example 2: git add submodule branch
git submodule add -b branch_name URL_to_Git_repo optional_directory_rename
git submodule update --init --recursive
git submodule add -b branch_name URL_to_Git_repo optional_directory_rename