IT lexicon › Programming › Working directory

Working directory

Programming På svenska → Updated: 2026-11-14

The local folder where you edit files in a version-controlled project.

In Git, a repository has three layers: the working directory (your filesystem), the index or staging area (what you've marked for commit), and the object database (Git's permanent store). The working directory is just regular files — you can edit, create, or delete freely. Git tracks changes by comparing your working directory to the object database. Before changes become permanent, they must be staged (added to the index) and then committed. A single repository can also have multiple working directories through Git worktree, allowing parallel work on different branches.

← Back to the lexicon