#!/usr/bin/env bash git submodule foreach "git submodule update --init" git submodule foreach "git checkout master" cd Code/client git submodule foreach "git submodule update --init" git submodule foreach "git reset --hard origin" git submodule foreach "git checkout master" git submodule foreach "git pull" cd ../..