Usually when looking for git repositories I look for a .git
directory, but that doesn't always work. Submodule worktrees have a .git
file, submodules aren't always checked out, and submodule repositories (and bare repositories) can be anywhere.
I want to find every repository cloned from say github, but finding every repository's hard enough. Is there a command or oneliner to do this?