discard
Installation
SKILL.md
Discard
Finish the managed round trip by abandoning isolated work, leaving the recorded base unchanged, and removing the isolated branch and folder.
Consult the package contract when recovering from failure or changing package behavior; the steps below are the execution path.
Steps
-
Resolve the managed target.
Resolve
<repo-root>withgit rev-parse --show-toplevelfrom the current checkout. Prefer the user-provided branch; inside the isolated worktree, omit it and let the launcher resolve the current branch.This step is complete when the target has isolate metadata and is neither the base worktree nor a protected branch.
-
Run discard once.
PowerShell: