sub module shoule be added in master or any branches code example
Example: git add submodule branch
git submodule add -b branch_name URL_to_Git_repo optional_directory_rename
git submodule add -b branch_name URL_to_Git_repo optional_directory_rename