Clean Worktrees banner
FlorianBruniaux FlorianBruniaux

Clean Worktrees

Development community

Description

--- name: clean-worktrees description: Automatically clean all stale worktrees (pruned refs + merged branches) argument-hint: "[--dry-run]" --- # Clean Worktrees (Automatic) Automatically clean all stale worktrees: pruned references, merged branches, and orphaned directories. **Difference with `/tech:clean-worktree`**: - `/tech:clean-worktree`: Interactive, asks confirmation - `/tech:clean-worktrees`: **Automatic**, no interaction (safe: only merged branches) ## Usage ```bash /tech:clean-wo

Installation

Installs to ~/.claude/commands/florianbruniaux-cc-sessions-clean-worktrees.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/FlorianBruniaux/cc-sessions/HEAD/.claude/commands/clean-worktrees.md -o ~/.claude/commands/florianbruniaux-cc-sessions-clean-worktrees.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository