1 example for git submodule foreach git pull origin master
# For each submodule, pull the latest changes from the remote master branch.
git submodule foreach git pull origin master
# For each submodule, pull the latest changes from the remote master branch.
git submodule foreach git pull origin master