I am curious if there is anyway to ignore the hidden /.git
directory as well as other git related files (ie: .gitignore
) so that I can have a parent git repository that can track the raw local contents of the parent git repository with children git repositories within it.
for example I have a tree
as follow:
C:.
│ .gitignore
│ README.md
│
└───child-repo
.gitignore
README.md
I do not want the child-repo
to be a submodule because it will live in a private Azure DevOps instance and submodules are not handled well this way.
I have tried updating the parent .gitignore
to be:
.*
!.gitignore
**/.git
As well as adding .*
to .git/info/exclue
and still child-repo
is treated as a submodule..