If you have a git repository that consist of several submodules you can push all submodules by doing the following:
place yourself in the main git repo.
write:
git submodule foreach git push
To make sure that you get through all the submodules even if errors occurs do:
git submodule foreach "git push || true"
Tags: foreach, git, submodules