GIT WORKTREES. ONE COMMAND AWAY.

Switch tasks.
Keep your flow.

A quick fix. A code review. Your next idea.
Give each task its own workspace, and pick up right where you left off.

macOS & Linux · Built in Rust · Free & open source

~   /   worktreeTHE TERMINAL IS HOME
worktree
The real worktree terminal picker: search across demo repositories, select a branch with the arrow keys, then press Enter to open it.
Real CLI. Fictional workspaces.Type to search. ↑ ↓ to select. ↵ to go.
01 / MAKE ROOM

One task. One worktree.

Keep your current changes where they are. Create a separate directory and branch for the next thing.

02 / FIND YOUR PLACE

Less directory hunting.

Fuzzy-search projects and branches in one terminal picker. Arrow keys, Enter, or a click. You’re there.

03 / STAY IN FLOW

Your terminal. Your tools.

Works with zsh and bash. Finds registered projects and Codex worktrees. Fits into the way you already work.

A SMALL TOOL FOR THE EVERYDAY

A few commands.
A lot less friction.

Git worktrees let you work on multiple branches in separate directories. worktree makes creating and moving between them feel natural.

Read the full usage guide
01

Create & jump in

$ worktree create fix-parser

Create a worktree and switch to it. Existing branch? It uses that.

02

Find & open

$ worktree

Pick your workspace, or go straight there with worktree open fix-parser.

03

Explore another approach

$ worktree fork fix-parser experiment

Fork into a new branch with your staged, unstaged, and untracked work carried along.

LESS IS MORE.

Keep it simple, stupid.

Do one thing. Make it easy. Get out of the way.
A small tool for Git worktrees, with your terminal at the center.

YOUR NEXT TASK STARTS HERE

Less setup.
More doing.

Install with Homebrew, enable your shell, and run worktree inside a Git project.

Works on macOS and Linux. Git is required.
Homebrew builds the current main branch from source.

Other installation options on GitHub

01 Install with Homebrew

brew tap alex-ross/worktree https://github.com/alex-ross/worktree
brew trust --formula alex-ross/worktree/worktree
brew install --formula --HEAD alex-ross/worktree/worktree

02 Enable your shell

zsh — add to ~/.zshrc
source "$(brew --prefix worktree)/share/worktree/init.zsh"
bash — add to ~/.bashrc or ~/.bash_profile
source "$(brew --prefix worktree)/share/worktree/init.bash"

Open a new terminal, enter a Git project, and run worktree.