Cleans up git worktrees created by git-worktree-runner by removing non-default branches and pruning deleted remotes. Use this to maintain a tidy local git environment.
Instal·la
npx skillscat add dyoshikawa/rulesync/clean-worktrees Instal·la des del registre de SkillsCat.
Sobre aquest skill
Cleans up git worktrees created by git-worktree-runner by removing non-default branches and pruning deleted remotes. Use this to maintain a tidy local git environment.
SKILL.md
- 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.