Git worktree CLI
Switch tasks.
Keep your place.
Open a new task or review a PR.
Your current work stays right where you left it.
npm install -g @solaqua/gjigit status --short M src/checkout.ts M src/checkout.test.ts
Illustrated workflow · setup time omitted
Shell integration is enabled in this example. Hover or focus to pause.
Real directories for real work.
Each task gets its own worktree, with space to run your project, install dependencies, and make changes.
Your changes stay right where you left them.
Uncommitted changes stay in their worktree while you switch tasks or review a pull request.
Move between tasks from your terminal.
Create, review, and return with gji new, gji pr, gji go, and gji back.
01 · Your work in progress
Leave work as it is.
You’re in the middle of a change. There’s no need to commit or stash it just to switch tasks.
$ git status --short
M src/checkout.ts
M src/checkout.test.ts02 · Start another task
Give the next task its own place.
Create a branch and worktree together. gji moves your shell into the new directory, ready for the next task.
$ gji new feature/search03 · Review a PR
Review without disturbing your work.
Open a pull request from your repository in a separate worktree. Your other tasks stay in their own directories.
$ gji pr 123404 · Move between tasks
Go to the task you need.
Choose an open task with gji go, or name the branch you want. Your changes remain in that worktree.
$ gji go feature/payments
$ git status --short
M src/checkout.ts
M src/checkout.test.ts05 · Return to your last task
Go back in one command.
Return to the previous worktree with gji back. In this example, that takes you back to the PR you were reviewing.
$ gji backNew worktrees run supported dependency setup automatically. Shell integration lets gji move you between directories. Installation and setup