Skip to content

luqven/tree-buddy

Repository files navigation

Tree Buddy

Git worktree manager for macOS and Linux. Visualize, create, and manage worktrees from your terminal.

Quick Install

curl -fsSL https://raw.githubusercontent.com/luqven/tree-buddy/main/install.sh | bash

See CLI documentation for manual installation and shell setup.

Usage

Interactive UI

tb              # Launch the interactive TUI

Navigate with j/k, quit with q, open command palette with /, help with ?.

CLI Commands

Tree Buddy supports fast, non-interactive commands for common tasks:

tb list           # List all projects and worktrees
tb <branch>       # Switch to (or create) a worktree for <branch>
tb add <branch>   # Explicitly create/add a worktree
tb rm <branch>    # Remove a worktree
tb --help         # Show all available commands

Example: tb list

Tree Buddy | Projects

> tree-buddy (1)
   ● .                                                  [main] [main]

> my-cool-project (3)
   ● .                                                  [main] [main]
   ● .worktree/feat-cli                                 [feat-cli]
   ● .worktree/bugfix-login                             [bugfix-login] [locked]

Requirements

  • macOS (Apple Silicon or Intel) or Linux (x64 or ARM64)

Development

From Source

# Clone and install dependencies
git clone https://github.com/luqven/tree-buddy.git
cd tree-buddy
npm install

# Run CLI directly with Bun
npm run cli:bun

# Run tests
npm test

# Build standalone executable
npm run build:cli

GUI (Menubar App - macOS only)

npm start

Documentation

See docs/ for detailed documentation.

About

Worktree manager I use to cleanup my messes

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •