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
- git init — The command that turns the current directory into a Git repository by creating the hidden .git directory.
- repository — A project folder whose full history is tracked by version control; in Git, your files plus the hidden .git directory that stores every commit.
Taught in
- A Repository Is A Folder With A Memory — Advanced Git Internals & Distributed Workflows