Suppose I have my repository structure like this:
MyApp/
.git/
.gitignore
File1
dir1/
File2
src/
File3
File4
module1/
.git/
.gitignore
foo.cpp
module2/
.git/
.gitignore
bar.cpp
...
In other words, I have some deep sub-folders containing .git/
, called repository sub-folders.
How can I write .gitignore
in MyApp repository, or by other means, to ignore all those repository sub-folders in the view of MyApp? They are obvious to be ignored, since they are already managed by other independent repositories.
--OR--
Any standard way to deal with this "Git: repository in repository" scenario, if the "ignoring" is not the way to go?