#!/bin/bash # # Checkout branches in all submodules, recursivelly. # # Run recursivelly for each submodule git submodule foreach --recursive git-checkout-branch