import DocCardList from '@theme/DocCardList';

# Git Worktree Answers

_Fixes and explanations for common git worktree errors and setup questions._

A [git worktree](/learn/concepts/git/git-worktrees) is a second working directory attached to the same repository. Worktrees are how most tools isolate parallel coding agents, so their errors show up often. Each answer below covers one error or question.

Start with [the "branch is already used by worktree" fix](./worktrees/branch-already-used-by-worktree.md) if Git refuses a checkout. For a first setup, read [where to put worktrees](./worktrees/nested-or-sibling-worktrees.md). For problems that only show up with several agents, see the [coding agents and Git answers](./agents-and-git.md).
