IT lexicon › Programming › Worktree

Worktree

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

A checked-out copy of a Git repository, or multiple independent checkouts from the same repo.

Worktree refers both to a normal Git clone (a working directory linked to a repository) and to the `git worktree` command that lets you maintain multiple independent checkouts of the same repository simultaneously. The latter use case is practical when working on multiple branches in parallel without switching branches in a single directory, which can save the cost of rebuilding unchanged source files. This feature is especially useful in CI systems and for developers juggling multiple features.

← Back to the lexicon