Search the documentation
2 pages for git_work_tree.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Claude Code changelog
Claude Code CLI · in the page
changelog
…git into the shared checkout via `git -C`, `--git-dir`, or `GIT_DIR`/`GIT_WORK_TREE` * Fixed worktree sessions landing in another project's leftover worktree when the working directory did not match…
Run parallel sessions with worktrees
Claude Code CLI · in the page
worktrees
…The redirect can come through `git -C`, `--git-dir`, a `GIT_DIR` or `GIT_WORK_TREE` variable, or a `cd` into the main checkout before running git. * **Command shape**: Claude Code blocks a Bash or Mo…