Skip to content
/ wts Public

Opinionated CLI for managing git worktrees — keeps all worktrees as siblings in one folder.

Notifications You must be signed in to change notification settings

j2h4u/wts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wts — Worktree Siblings

Opinionated CLI for managing git worktrees — keeps all worktrees as siblings in one folder.

Problem

Standard git worktree creates worktrees scattered across the filesystem.
Tools like Vercel CLI fail with ENOTDIR error on bare repository worktrees.

Solution

Sibling layout — all worktrees in one folder, side by side:

my-repo.worktree/        ← Worktree home
├── main/                ← Main branch (regular clone with .git/ directory)
│   └── .git/
└── feature-xyz/         ← Feature worktree (sibling)
    └── .git (file)

Installation

git clone [email protected]:j2h4u/wts.git ~/.local/share/wts
cd ~/.local/share/wts
bun install
bun link

Usage

wts clone <url> [dir]   # Clone repo with worktrees as siblings
wts new <branch> [dir]  # Create feature worktree
wts done <dir>          # Remove worktree and branch
wts list                # Show all worktrees

Documentation

Naming

wts = Worktree Siblings + TypeScript

License

MIT

About

Opinionated CLI for managing git worktrees — keeps all worktrees as siblings in one folder.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published