1 2 3 4 5 6
#!/bin/bash echo "Building all submodules while checking out from MASTER branch." git submodule update git submodule foreach git checkout master --recursive git submodule foreach git pull origin master --recursive