/git-worktree:wt-finish [ --push | --pr | --no-merge | --force ]from git-worktree
Completes a git worktree task: merges the current branch to main, removes the worktree, and deletes the branch. Supports --push, --pr, --no-merge, and --force flags.
Ships in git-worktree. Installing the plugin adds it to Claude Code.
What the command file sets; muted values are Claude Code's defaults
Complete the current worktree task: merge to main, remove worktree, delete branch.
| Flag | Description |
|---|---|
| (none) | Merge → Remove worktree → Delete branch → Close terminal |
--push | Push to remote after merge |
--pr | Create PR instead of merge (keeps worktree) |
--no-merge | Skip merge, only cleanup |
--force | Force delete with unmerged changes |
Merge → Remove worktree → Delete branch → Close terminal (3s delay)
--prPush → Create PR via gh → Keep worktree (for review changes)
After PR merged: wt-finish --no-merge
--pushMerge → Push main → Remove worktree → Close terminal
--pr requires GitHub CLI: brew install gh${CLAUDE_PLUGIN_ROOT}/scripts/wt-finish.sh [options]
7-day visitors to each command page
npx claudepluginhub himicoswilson/himi-claude-plugins --plugin git-worktree2 commands in this plugin
Other plugins' commands for the same job