Remove Worktree
Remove a specific worktree: directory, git reference, and local branch.
Usage
bash
/remove-worktree feature/pr-9-skill-improvements
/remove-worktree fix/typo-in-guideImplementation
Execute this script with branch name from $ARGUMENTS:
bash
#!/bin/bash
set -euo pipefail
BRANCH_NAME="${ARGUMENTS:-}"
if [ -z "$BRANCH_NAME" ]; then