Skip to content

Instantly share code, notes, and snippets.

wt — git worktree manager

A single shell function that organizes git worktrees under ~/.worktrees/<repo>/<branch>/.

Install

  1. Save wt.sh somewhere, e.g. ~/.config/wt/wt.sh
  2. Add to your .zshrc or .bashrc:

source "$HOME/.config/wt/wt.sh"