Nested Git repositories?

git

Solution

You may be looking for the Git feature called submodules. This feature helps you manage dependent repositories that are nested inside your main repository.

Problem

Can I nest Git repositories? I have: ``` /project_root/ /project_root/my_project /project_root/third_party_git_repository_used_by_my_project ``` Does it make sense to `git init/add` the `/project_root` to ease management of everything locally or do I have to manage `my_project` and the 3rd party one separately?

Original source

Related problems