.worktreerc Configuration
Per-repo configuration file reference for wt. Commit this file to share setup behavior across your team.
Overview
Place .worktreerc in your repository root and commit it. It contains no secrets — only strategies and commands.
Run wt init to generate one automatically, or create it manually using .worktreerc.example as a reference.
[detect]
Override automatic ecosystem detection. When types is set, wt skips file scanning and uses exactly these ecosystems (while still detecting the package manager from lockfiles).
[deps]
Controls dependency installation.
[env]
Controls how .env files are propagated from the main worktree to new ones.
[files]
Symlink or copy arbitrary paths into new worktrees.
[python]
Python virtualenv configuration.
[hooks]
Shell commands that run at specific points in the setup pipeline. Each command runs from the worktree root via sh -c.
Security note: hook commands run with the same permissions as your user. Review any
.worktreercfrom an untrusted source before runningwt setup.
[worktree]
Controls where new worktrees are placed on disk.