1 2 3 4 5 6 7
#!/bin/bash # # Checkout branches in all submodules, recursivelly. # # Run recursivelly for each submodule git submodule foreach --recursive git-checkout-branch