Thank you very much Brian. This was incredibly useful.
I had to do a small change to your suggested command otherwise it lists all the directories found recursively. I added the maxdepth option.
This is for people looking later for the answer:
with_pipe: find /home/git/*.git -type d -maxdepth 0
Yes I only want the .git. Indeed your way to invoke find is more correct. However it still need a change to work on my Ubuntu computer. This one worked.
find /home/git/ -maxdepth 1 -name “*.git” -type d
The maxdepth option should be moved to front and its value should be 1. Your way to invoke find is indeed better than mine