If they were working copy of git repositories, we could start simply with the approach of looking for every folder with the name ".git" (find . -type d -name ".git"
), as answered here.
But in big storages, how to detect all folders containing bare git repositories?