Some horrific BASH for git submodules
Another post that has no use to anyone other than me, probably.
I have a git repository that is simply a directory containing a load of submodules. Some of these are on branch master and some are not. So I have a nice one-line BASH script that tells me which is which, and I keep it here so I don't have to remember it.
for f in *; do cd $f; echo $f; (git status | grep branch); echo ''; cd ..; done
As you were!