wt auto-installs dependencies and wires up .env files every time you create a git worktree. One command, ready to code.
Every time you create a worktree, you start over. wt fixes that.
$ git worktree add \
../feat ../feat-billing
$ cd ../feat-billing
$ bun install
# wait 2+ minutes...
$ cp ../.env .env
$ cp ../.env.local .env.local
$ bun run codegen
$ python manage.py migrate
# finally ready...$ wt add feat-billing
Worktree ready at:
~/worktrees/myapp-feat-billing
cd into it:
cd ~/worktrees/...From first worktree to team-wide adoption — wt has you covered.
Automatically detects Node.js, Python, Rust, and Go. Picks the right package manager from lockfiles — bun, pnpm, yarn, uv, poetry, cargo, and more.
Symlink or copy .env files into every new worktree. Configure per-file strategies, exclusions, and always-copy overrides. Never set up secrets manually again.
Ships two hooks for Claude Code. New worktrees auto-configure when Claude creates them. Fully set up before Claude's next step, without any manual intervention.
Commit a .worktreerc alongside your code. Every developer on the team gets identical setup behavior automatically. Override anything with per-repo config.
wt add, list, remove, cd, init, and doctor. Fuzzy branch matching, uncommitted change protection, and a diagnostic checklist to find setup issues fast.
First-class zsh and bash completions. Tab-complete branch names, command flags, and subcommands. The installer sets it up automatically.
Auto-detected from lockfiles and project markers. No configuration needed.
Prerequisites: bun ≥ 1.0 and git ≥ 2.5
git clone https://github.com/shreyT19/git-wt ~/tools/wt
cd ~/tools/wt
./install.shwt init # generate .worktreerc
wt add my-feat # create your first worktree