I need to add a giant directory tree to git. Some of its sub-directories are already in git repos. How can I ignore these directories?
The tree has thousands of directories, dozens of them already have their own repo. I can, for example, write a script to scan the tree and add those directories to .gitignore. I'm just trying to find out if there is a gitish way to ignore such directories during initial git add
run.