git-workty-0.1.2 is not a library.
Visit the last successful build:
git-workty-0.3.3
git-workty
Git worktrees as daily-driver workspaces.
workty turns Git worktrees into instant, safe context switching—no stashing, no WIP commits. Create a task workspace in one command, jump between tasks with shell integration, and keep your repo tidy with safe cleanup.
30-Second Demo
# See all your workspaces
# Create a new workspace for a feature
# With shell integration, cd into it directly
# See dashboard
# ▶ feat/login ● 3 ↑2↓0 ~/.workty/myrepo/feat-login
# main ✓ ↑0↓0 ~/src/myrepo
# Jump to another workspace
# Clean up merged branches
Installation
From source
Shell Integration
Add to your shell config (.zshrc, .bashrc, config.fish):
# Zsh
# Bash
# Fish
|
This provides:
wcd- fuzzy select and cd to a worktreewnew <name>- create new worktree and cd into itwgo <name>- go to a worktree by name
Commands
git workty / git workty list
Dashboard of all worktrees.
▶ main ✓ ↑0↓0 ~/src/repo
feat/login ● 3 ↑2↓0 ~/.workty/repo/feat-login
pr-512 ✓ - ~/.workty/repo/pr-512
▶marks current worktree●with count shows uncommitted changes✓means clean↑↓shows commits ahead/behind upstream
Options:
--json- machine-readable output--ascii- ASCII-only symbols--no-color- disable colors
git workty new <name>
Create a new workspace.
git workty go <name>
Print path to a worktree (for cd).
git workty pick
Interactive fuzzy selector.
git workty rm <name>
Remove a workspace.
git workty clean
Remove merged/stale worktrees.
git workty pr <number>
Create workspace for a GitHub PR (requires gh CLI).
git workty doctor
Diagnose common issues.
git workty completions <shell>
Generate shell completions.
Configuration
Config is stored in $(git rev-parse --git-common-dir)/workty.toml:
= 1
# Base branch for new workspaces and merge detection
= "main"
# Root directory for workspaces
# {repo} = repository name, {id} = unique repo identifier
= "~/.workty/{repo}-{id}"
# Layout style: "flat" (default)
= "flat"
# Editor command for --open flag
= "code"
Safety
- Never destroys work by default - dirty worktrees require
--force - Prompts for destructive operations - unless
--yesis passed - Clear error messages - always tells you what to do next
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.