Skip to main content

rt worktree restore

rt › worktree › restore

Restore a disposed worktree from its retained trash entry (no target + TTY → picker)

Usage

rt worktree restore [<tree>] [flags]

Arguments & flags

Flag / ArgTypeDefaultDescription
<tree>textDisposed tree name to restore; omit to pick interactively
--repotextRegistered repo name (defaults to the current repo)
--listbooleanfalseList restorable entries instead of restoring one
--jsonbooleanfalsePrint the raw result as JSON

See code: commands/worktree.ts › worktreeRestore