Skip to content

daft prune

Remove worktrees for deleted remote branches

Usage

daft prune [OPTIONS]

This is equivalent to git worktree-prune. All options and arguments are the same.

Description

Removes local branches whose corresponding remote tracking branches have been deleted, along with any associated worktrees. This is useful for cleaning up after branches have been merged and deleted on the remote.

Options

OptionDescriptionDefault
-v, --verboseIncrease verbosity (-v for hook details, -vv for full sequential output)
-f, --forceForce removal of worktrees with uncommitted changes or untracked files
--stat <STAT>Statistics mode: summary or lines (default: from git config daft.prune.stat, or summary)
--columns <COLUMNS>Columns to display in the summary table (comma-separated). Replace mode: branch,path,age. Modifier mode: +col,-col. The status column is always shown.
--sort <SORT>Sort order (comma-separated). +col ascending, -col descending. Sortable columns: branch, path, size, age, owner, activity. Default: daft.prune.sort or +branch.

Global Options

OptionDescription
-h, --helpPrint help information
-V, --versionPrint version information

See Also

Released under the MIT License.