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
- Run
git gtr listto list all worktrees. - For each worktree branch that is NOT the default branch (e.g. main), run
git gtr rm --force {branch}to remove it. - Run
git pull --pruneto fetch latest changes and prune deleted remote branches.

