← Browse by Chapter
Get the Book →
#53Test worktree — writable test only
Here's my `git worktree list` output: [paste]. For each worktree: (1) check if the branch has been merged into main, (2) check if the directory still exists on disk, (3) recommend: keep, remove, or prune. Output as a table with cleanup commands for each action.

Mastering Claude Code
These prompts are excerpts from the book. Get the full collection with explanations and use cases.