Stop wasting time
setting up worktrees

wt auto-installs dependencies and wires up .env files every time you create a git worktree. One command, ready to code.

zsh
$ wt add feat-billing
Creating worktree for branch 'shreyansh/feat-billing'
path: ../worktrees/myapp-feat-billing
[1/4] Creating worktree ........................ done (312ms)
[2/4] Detecting project type .................. node(bun), python(uv) (28ms)
[3/4] Installing dependencies ................. done (8.4s)
[4/4] Setting up env files .................... 2 files (11ms)
Worktree ready at: /Users/dev/worktrees/myapp-feat-billing

Git worktrees are great. The setup is not.

Every time you create a worktree, you start over. wt fixes that.

Before — without wt
$ 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...
8 commands, 2+ minutes, error-prone
After — with wt
$ wt add feat-billing




Worktree ready at:
  ~/worktrees/myapp-feat-billing

cd into it:
  cd ~/worktrees/...
1 command, seconds, every time

Everything you need

From first worktree to team-wide adoption — wt has you covered.

Cross-ecosystem detection

Automatically detects Node.js, Python, Rust, and Go. Picks the right package manager from lockfiles — bun, pnpm, yarn, uv, poetry, cargo, and more.

.env file management

Symlink or copy .env files into every new worktree. Configure per-file strategies, exclusions, and always-copy overrides. Never set up secrets manually again.

Claude Code integration

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.

Smart defaults + .worktreerc

Commit a .worktreerc alongside your code. Every developer on the team gets identical setup behavior automatically. Override anything with per-repo config.

Full worktree lifecycle

wt add, list, remove, cd, init, and doctor. Fuzzy branch matching, uncommitted change protection, and a diagnostic checklist to find setup issues fast.

Shell completions

First-class zsh and bash completions. Tab-complete branch names, command flags, and subcommands. The installer sets it up automatically.

Works with your stack

Auto-detected from lockfiles and project markers. No configuration needed.

bunnpmpnpmyarnuvpippoetrycargogo mod

Get started in seconds

Prerequisites: bun ≥ 1.0 and git ≥ 2.5

Install
git clone https://github.com/shreyT19/git-wt ~/tools/wt
cd ~/tools/wt
./install.sh
Then in any git repo
wt init          # generate .worktreerc
wt add my-feat   # create your first worktree