nested repository

A Git repository created inside the working tree of another one, usually by running git init in the wrong folder.

In more detail

The outer repository then sees the inner folder as a single untracked entry rather than its files, and commits in one do not appear in the other. Remove the inner .git directory, or use submodules on purpose if you really need one repository inside another.

Related terms

Taught in

References