If the child repository is not a submodule and is just a directory with its own .git folder, it’s treated as a separate Git repository. If it is not already a submodule, add it .
git submodule add path/to/child-repo git submodule update --init --recursive