← Browse by Chapter
Get the Book →
#81Chapter 15 — Worktrees and Parallel Sessions
Before I remove the worktree at [path], tell me what removal would destroy. Inside it, run git commands and show me their output: uncommitted changes, untracked files, changes inside any checked-out submodule, and every commit on its branch that is on no other local branch and no remote branch. Mark `[VERIFY]` on anything you state without a command's output behind it. Do not remove, push or commit anything.

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