Manage git worktrees for isolated work

using-wtskillsetup L236
abhi-arya1/wt
What it does

Create and manage isolated git worktree sandboxes locally or on remote hosts

Best for

Parallel branch testing when you need isolated checkouts without juggling git stash

Inputs
  • · repo path
  • · branch name
  • · host (local or SSH)
Outputs
  • · sandbox directory
  • · tmux session (optional)
  • · command exit code
Requires
  • · git
  • · bun/node
  • · tmux (optional)
  • · SSH (for remote)
Preconditions

Git repo initialized; wt config (~/.config/wt/config.json) present for remotes

Failure modes

Origin not cloneable from remote; stale mirror; SSH key not in agent

Trust signals
  • · Idempotent (re-run safe)
  • · Auto-copies .env* files
  • · Supports port forwarding