Tidy branches
- List remote branches already merged into main.
- Delete each with
git push origin --delete <branch>. - Delete the matching local branches with
git branch -D <branch>.
Tidy branches is an AI agent skill from the GitHub repository Goldziher/ai-rulez. Cleans up stale git branches. Use when the repository has many merged branches.
.claude/skills/tidy-branches/SKILL.md.cursor/rules/tidy-branches.md.agents/skills/tidy-branches/SKILL.mdgit push origin --delete <branch>.git branch -D <branch>.