add git submodules from .gitmodules with bash: found here: http://stackoverflow.com/questions/11258737/restore-git-submodules-from-gitmodules
#!/bin/sh
set -e
git config -f .gitmodules --get-regexp '^submodule\..*\.path$' |
while read path_key path