Tree-me: Because Git worktrees shouldn't be a chore (haacked.com)

🤖 AI Summary
Tree-me is a tiny CLI wrapper that makes Git worktrees painless by adding a predictable convention and a few ergonomic conveniences. Aimed at people who juggle multiple branches (or use LLM coding tools in parallel), it auto-detects your repository name and default branch, creates worktrees under a single root (default ~/dev/worktrees/<repo>/<branch>), and automatically cds into them. That removes the need for multiple clones, stash gymnastics, or committing WIP code when switching contexts—useful for faster feature work, PR reviews, and parallel workflows. Under the hood tree-me delegates all validation and edge cases to Git’s native worktree support, while adding features: git-like subcommands (create, checkout/co, pr, list/ls, remove/rm, prune, shellenv), GitHub PR checkout via git’s PR refs (requires the gh CLI), tab completion, and an auto-cd shell helper you enable with source <(tree-me shellenv). It’s single-file, depends only on git and a POSIX shell (gh optional), installed by placing the script in your PATH, and is MIT licensed. It intentionally avoids project-specific setup (env files, deps), focusing solely on organizing and managing worktrees with sensible defaults and escape hatches.
Loading comments...
loading comments...