For pull all the submodules from the master branch I'm using this command.
git submodule foreach git pull origin master
How can I pull only one submodule from specific branch?
For pull all the submodules from the master branch I'm using this command.
git submodule foreach git pull origin master
How can I pull only one submodule from specific branch?
You could cd
into the location of the submodule that you want to update and then do a git pull origin master
from there.
That will only update the one submodule. You can then check in the updated code.