Updated question based on comments:
Project P, is made up of submodules/mini-projects A, B,C,D,E.
Please note that A,B,C,D,E are directories which house their own projects, ex A: Web, B: Analytics C: Devops D:does_somethings E : Extra_features and so on. in other words each of A-E is its own repository.
A can have b1,b2,b3 branches which were created or checkeout by user1.
B can have x1,x2,x3 branches,, again by user1. and so on.
soEach subfolder A,B,C,D,E can have multiple unmerged/merged branches.
My question is , is there a command that will automatically tell me what branch is active on which repository (only A,B,C,D,E i.e first level only) present under P.
right now I'm cd
'ing into each subfolder and then typing ' git branch'.
so if I have 10 subfolders, I have to cd into them 10 times and do git branch another 10 times.
I checked this: https://stackoverflow.com/a/2421063/4590025
git log --graph --pretty=oneline --abbrev-commit
but that is not what I'm looking for.
I am looking for something like a bird's eye view.