git clone sub-mod.git
git branch -a
*develop
mybranch #branch exists
git clone --recurse-submodules --branch develop main-project.git
cd path/to/sub-mod
git branch -a
*develop #mybranch not listed so cannot change to that. git pull/fetch did not help
Note: I have added the submodule branch name in .gitmodules