gitwo CLI
git worktree helper

git worktrees, without the papercuts

gitwo is a tiny CLI that makes git worktree effortless - predictable names, safe cleanup, quick switch, and team‑friendly conventions.

Jira/Linear aware Dry‑run + guards
gitwo demo
# create a worktree for a ticket
$ gitwo add TMS-1421 --type feature
> created: ../feature/TMS-1421
> branch: feature/TMS-1421 -> origin/main

# jump between sandboxes
$ gitwo switch TMS-1421
> now at: ../feature/TMS-1421

# list everything (JSON or pretty)
$ gitwo ls --pretty
• main               /repo (clean)
• feature/TMS-1421   ../feature/TMS-1421 (✓)

# safe cleanup
$ gitwo prune --merged --dry-run
would remove: ../feature/TMS-1421
Install

Get gitwo in seconds

Homebrew on macOS or direct binaries for Linux/Windows.

Homebrew
brew tap gitwohq/tap
brew install gitwo

Upgrade anytime with brew upgrade gitwo.

Direct binaries
# Linux / Windows (amd64, arm64)
# Download from Releases and put on PATH
chmod +x ./gitwo && sudo mv ./gitwo /usr/local/bin/

SHA256 checksums and SBOM provided with each release.

Why gitwo

The missing ergonomics for worktrees

Clean folders, clear names, safer lifecycle, happier teammates.

One repo, many sandboxes

Instant worktrees per task without extra clones or wasted GBs.

Frictionless UX

Human‑friendly add/list/switch/clean, guards against foot‑guns.

Conventions built‑in

Opinionated names, ticket prefixes, and folder hygiene.

Safer cleanup

Refuses to delete dirty trees; dry‑run previews before removal.

Merge‑ready

Create from any ref, track upstream, jump back with zero context loss.

CI‑friendly

Scriptable JSON output + exit codes for hooks, bots, and CI checks.

Ship more, context‑switch less

Work like every task has its own repo—without the clones.

Install gitwo ★ Star on GitHub
FAQ

Few quick answers

Why not plain git worktree?

gitwo wraps the sharp edges: consistent naming, safe cleanup, quick switch, ticket awareness, and helpful guards. It’s the ergonomics teams re‑invent in ad‑hoc scripts—baked in and documented.

Does it modify my repo?

No magic. gitwo is a thin CLI on top of Git. It creates/removes worktrees and branches using official plumbing.

Is it cross‑platform?

Yes. Single static Go binary: Homebrew on macOS; archives for Linux/Windows. Works anywhere Git works.

How do we enforce team naming rules?

Configure prefixes (feature/, bugfix/, chore/), ticket extractors (Jira/Linear), and folder templates in a dotfile.