repository root

The top folder of a repository's working tree, the one that contains the .git directory.

In more detail

Git commands work from any subdirectory because Git walks up the folders until it finds .git, and paths in its output are relative to this root. git rev-parse --show-toplevel prints it.

Related terms

Taught in

References