Skip to main content

Requirements

GWTree requires Node.js 18.0.0 or higher.
Make sure you have git installed and are working within a git repository.

Install globally

Install GWTree globally to use the gwt command anywhere:

Verify installation

Check that GWTree is installed correctly:
You can also use the full command gwtree instead of the gwt alias.

First-time setup

On first run, GWTree creates a config file at ~/.config/gwtree/config.json with default settings:

Configuration options

string
default:"code"
Editor to open worktrees in: code, cursor, default (uses $EDITOR), or none
boolean
default:"true"
Automatically install dependencies when creating worktrees
string
default:"null"
Last used package manager: pnpm, npm, yarn, bun, or null

Manage configuration

Open the config file in your editor:
Reset to default settings:

Uninstall

To remove GWTree:
Configuration files in ~/.config/gwtree/ and worktree records in ~/.gwtree/ will remain after uninstall. Delete these directories manually if needed.

Next steps

Quickstart

Create your first worktree and learn the essential commands