Command Details

$ git submodule foreach 'git checkout master && git pull'

Update all submodules to the latest commit on their master branch.