Recipes
Common workflow patterns and examples for using wt effectively.
Quick worktree for a hotfix
Worktree with a custom path
Skip deps for a quick code review
Re-run setup after a config change
Navigate between worktrees
Clean up all worktrees
Preview before creating
Monorepo with custom install commands
For monorepos or non-standard setups, define custom install steps in .worktreerc:
Team-shared worktreerc
Commit .worktreerc so everyone gets the same setup:
Every developer who runs wt add will get the same dependency installation, env file setup, and hook commands automatically.
Branch prefix for personal forks
Set a global branch prefix so all your branches are namespaced:
Now wt add feat-billing creates yourname/feat-billing.