I have all my code in a folder in which I want to initialize a git repo for all the code. This folder has many projects. Some projects have a .git folder in them and are a git repository. I want to add all these projects to the top-level git repo.
Even if I can skip the one’s which are already a git repo, can I add the rest of the files automatically?
I have tried:
git add .
This gives me a submodule error.