2 # Checkout and update source for all registered submodules (.gitmodules)
4 cd $(git rev-parse --show-toplevel)
5 git submodule update
--init --quiet
6 git submodule sync
--quiet
7 git submodule foreach
--quiet git checkout
--quiet -B master origin
/HEAD
8 git submodule foreach git pull
--prune origin