Skills

Clean Worktrees

Clean git worktrees created by git-worktree-runner

Install

npx skills add dyoshikawa/rulesync --skill clean-worktrees -g -a claude-code -y
Repository
dyoshikawa/rulesync1.6k
Category
Git and review
Updated
3d ago
License
MIT
Context cost
Lightabout 62 tokens
Runs scripts
No, instructions only

What it does

Clean git worktrees created by git-worktree-runner

  1. Run git gtr list to list all worktrees.
  2. For each worktree branch that is NOT the default branch (e.g. main), run git gtr rm --force {branch} to remove it.
  3. Run git pull --prune to fetch latest changes and prune deleted remote branches.

More in Git and review