This repository was archived by the owner on Mar 30, 2026. It is now read-only.
Repository navigation
v1.0.0
Major Changes
-
cef2cf1: Initial release of worktree-cli
A modern CLI tool for managing git worktrees with ease. Key features:
- Clone & Setup: Clone repos into worktree-ready structure or convert existing repos
- Branch Management: Create, remove, switch, and list worktrees with intuitive commands
- Lifecycle Hooks: Automate setup/teardown with configurable post-create, pre-remove, and post-remove hooks
- File Management: Automatically copy files (env files, configs) to new worktrees
- Safety First: Prevents accidental removal of active worktrees
- Smart Defaults: Auto-detects default branches and handles edge cases
Commands:
worktree clone <git-url>- Clone repo into worktree structureworktree setup- Convert existing repo to worktreesworktree create <branch>- Create new worktree and branchworktree remove <branch>- Remove worktreeworktree switch [branch]- Switch to worktree (interactive if no branch)worktree list- List all worktrees