Receber por email
← Voltar para o catálogo

cleanup-branches

Prune local branches whose work is already merged into the base. TRIGGER when the user says "clean up branches", "delete merged branches", "prune local branches", "remove old branches", "I have too many branches", "what branches can I delete", "/nyann:cleanup-branches". Do NOT trigger on "delete THIS branch" (that's a one-off `git branch -D`, not a cleanup pass) or "remove a branch from the remote

6estrelas
Atualizado há 4 meses

Ver no GitHub ↗ Licença: MIT

Como adicionar

/plugin marketplace add thettwe/nyann

O comando exato pode variar conforme o repositório. Confira o README no GitHub.

Para o autor da skill

Cole no README do seu repo

Mostra que sua skill está catalogada na Skillteca, gera backlink e tráfego rastreável.

[![Skillteca](https://www.skillteca.com.br/api/badge/cleanup-branches/svg)](https://www.skillteca.com.br/skills/cleanup-branches)

Skills relacionadas

Ver todas de Desenvolvimento →

Alerta por categoria

Receba novas skills de Desenvolvimento toda segunda

1 email curto, só com as skills novas de Desenvolvimento. 4 minutos de leitura, sem spam, cancela com 1 clique.

Você confirma o email no primeiro envio. Sem spam. Cancela com 1 clique.

Ler descrição completa

cleanup-branches

Wraps bin/cleanup-branches.sh. Lists local branches whose tip is reachable from the base branch (main / develop / wherever the profile points), then either previews the list or actually deletes them with git branch -d (safe — refuses unmerged work).

Mirrors the same preview-then-mutate contract as undo and migrate-profile: nothing is deleted unless the caller passed --yes AND --dry-run was absent.

1. Run the preview

Always invoke without --yes first:

[Description truncada. Veja o README completo no GitHub.]

Compartilhar X LinkedIn