List submodules in a Git repository
You could use the same mechanism as git submodule init uses itself, namely, look at .gitmodules. This files enumerates each submodule path and the URL it refers to. For example, from root of repository, cat .gitmodules will print contents to the screen (assuming you have cat). Because .gitmodule files have the Git configuration format, you … Read more