npx claudepluginhub timvw/wtTeaches Claude Code how to work with wt-managed git worktrees
Share bugs, ideas, or general feedback.
A fast, simple Git worktree helper written in Go. Inspired by haacked/dotfiles/tree-me.

global, sibling-repo, parent-branches, and morewt pr command (uses gh CLI) — checks out the PR's actual branch namewt mr command (uses glab CLI) — checks out the MR's actual branch name.env, init submodules)wt cleanup --stale)NO_COLOR=1 and auto-strips colors when pipedwt status --ci shows pipeline status (✓/✗/●) per branch via gh or glab CLI.wt.toml config — override global settings (strategy, hooks, etc.) on a per-repository basisbrew install timvw/tap/wt # or: go install github.com/timvw/wt@latest
wt init # configure shell integration
See docs/installation.md for all platforms (Scoop, WinGet, Linux packages, from source).
# Checkout existing branch in new worktree
wt co feature-branch
wt co # interactive: fuzzy-search from available branches
# Create new branch in worktree (defaults to main/master as base)
wt create my-feature
wt create my-feature develop # specify base branch

# Checkout GitHub PR (requires gh CLI)
wt pr 123 # looks up branch for PR #123
wt pr https://github.com/org/repo/pull/123 # GitHub PR URL
wt pr # interactive: fuzzy-search from open PRs
# Checkout GitLab MR (requires glab CLI)
wt mr 123 # looks up branch for MR !123
wt mr https://gitlab.com/org/repo/-/merge_requests/123 # GitLab MR URL
wt mr # interactive: fuzzy-search from open MRs

wt ls # list all worktrees
wt rm old-branch # remove a worktree
wt rm # interactive: fuzzy-search worktree to remove
wt migrate # migrate worktrees to configured paths
wt migrate --force # force when target path exists
wt cleanup --stale # detect stale worktrees (deleted remotes, inactive commits)
wt cleanup --stale --stale-days 7 # custom inactivity threshold (default: 30 days)
wt prune # clean up stale worktree admin files
wt version # show version
wt examples # show practical examples
wt --help # show help

wt info # show active strategy, pattern, variables
wt config show # show effective config with sources (global + repo .wt.toml)
wt config init # create a default config file
wt config path # print the config file path
# Place a .wt.toml in a repo root to override global config for that repo
