working tree

The files of a Git repository as they currently exist on disk, which you edit before staging and committing.

In more detail

It is one of Git's three areas, alongside the staging area and the repository. Git compares it with the staging area to report changes not staged for commit, and commands such as git restore change it. A bare repository has no working tree at all.

Example

In this course: A clean checkout is a fresh copy with no local changes or leftovers. Running the gate from one proves nothing hidden on your machine is needed, and a clean working tree after a test run proves the tests own their state.

Related terms

Taught in

References