After cloning the repository containing your submodules, the following command will checkout the master branch on all of these in one go:
git submodule foreach --recursive git checkout master
After cloning the repository containing your submodules, the following command will checkout the master branch on all of these in one go:
git submodule foreach --recursive git checkout master