Skill1.5k repo starsupdated 6d ago
clean-worktrees
Clean git worktrees created by git-worktree-runner
Install in Claude Code
Copygit clone --depth 1 https://github.com/dyoshikawa/rulesync /tmp/clean-worktrees && cp -r /tmp/clean-worktrees/.rulesync/skills/clean-worktrees ~/.claude/skills/clean-worktreesThen start a new Claude Code session; the skill loads automatically.
Definition
SKILL.md
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 from this repository
agent-teamSkill
>-
approveSkill
Approve a pull request using gh pr review --approve
babysit-dependabot-prSkill
>-
batch-all-issuesSkill
>-
batch-all-scrap-issuesSkill
>-
batch-review-prs-awaiting-maintainerSkill
>-
clean-branchesSkill
Clean up unnecessary local branches and prune stale remote-tracking branches
commit-push-prSkill
>-