List all git worktrees with their configuration and status
Lists all git worktrees with configuration details, status, and quick action commands.
/plugin marketplace add eduardoarantes/claude-code-plugin-marketplace/plugin install git-simple@code-plugin-marketplaceclaude-sonnet-4-5-20250929List all git worktrees in the trees/ directory with comprehensive information including branch names, directories, environment variables.
PROJECT_CWD: . (current working directory - the main project root)
WORKTREE_BASE_DIR: trees/
git worktree listFor each worktree found in trees/:
Extract Branch/Directory Info:
trees/<branch-name>Read Root Configuration:
<worktree>/.env existsFollow the Report section format below.
After gathering all information, provide a comprehensive report in the following format:
š Git Worktrees Overview
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
š Summary:
Total Worktrees: <count>
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
š³ Main Repository (Default)
š Location: <project-root>
šæ Branch: <current-branch>
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
š³ Worktree: <branch-name>
š Location: trees/<branch-name>
šæ Branch: <branch-name>
š Commit: <commit-hash-short>
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
[Repeat for each worktree]
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
š” Quick Commands:
Create new worktree:
āā /git-simple:create_worktree_prompt <branch-name>
Remove worktree:
āā /git-simple:remove_worktree_prompt <branch-name>
View this list again:
āā /git-simple:list_worktrees_prompt
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
If no worktrees exist in trees/:
š Git Worktrees Overview
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
š³ Main Repository (Default)
š Location: <project-root>
šæ Branch: <current-branch>
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā¹ļø No worktrees found in trees/ directory
š” Create your first worktree:
/git-simple:create_worktree_prompt <branch-name>
This will:
⢠Create isolated git worktree
⢠Install dependencies
⢠Start services automatically
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
If worktrees have configuration issues:
ā ļø Configuration Warnings:
⢠trees/<branch-name>: Missing .env files
āā Fix: Recreate with /git-simple:create_worktree_prompt <branch-name>
⢠trees/<branch-name>: Dependencies not installed
āā Fix: cd trees/<branch-name>/apps/server && bun install
āā Fix: cd trees/<branch-name>/apps/client && bun install
⢠trees/<branch-name>: Services running but ports mismatch
āā Fix: Stop services and update .env files