Syntax
Arguments
New worktree name. It is sanitised to lowercase letters, numbers, and hyphens. When given as the only argument, the current worktree (detected from the working directory) is renamed.
The worktree path, branch name, or directory name to rename. If omitted, auto-detects the current worktree from the working directory.
Suppress all progress messages to stderr. Useful for scripting and automation.
Examples
Notes
- The branch is renamed only when the current worktree directory name matches the branch name
- Shell completion suggests available worktree basenames for the first argument