From git-worktree
Merges current git branch to main, removes worktree, deletes branch, and closes terminal. Supports --push, --pr (GitHub PR), --no-merge, --force flags.
How this command is triggered — by the user, by Claude, or both
Slash command
/git-worktree:wt-finish [ --push | --pr | --no-merge | --force ]This command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
# Worktree Finish Complete the current worktree task: merge to main, remove worktree, delete branch. ## Rules 1. **Sandbox mode** → Stop immediately. Do not execute. 2. **Always confirm** before executing. 3. Check for uncommitted changes before proceeding. ## Options | 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 | ## Flows ##...
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]
npx claudepluginhub himicoswilson/himi-claude-plugins --plugin git-worktree/mergeMerges the current branch's PR after syncing with main, then removes the worktree and deletes the branch.
/wrap-upMerges a pull request via merge commit, syncs local main branch, and deletes the feature branch. Detects PR from current branch or accepts a PR number argument.