I have several, unversioned projects which in turn contain a large number of plugins, some of which are git clones. I now want to turn the parent project into a git repo, preferably without having to go through all the plugins, identifying which are git repos, and manually convert them to submodules of the parent project (which is, of course, the desired outcome).
Is there an easy way to do this?
You could do this with a short shell script: