Cleanup Local Branches

Use when cleaning up local Git branches after origin pruning. Deletes local branches whose upstream was deleted on origin (marked gone) and local branches with no origin counterpart that have been inactive for more than six months, while always protecting the current branch and the default branches. Previews every deletion before running it.

pekral d0d8f5a 8.7 KB Updated

File contents

pekral/cursor-rules/tree/main/skills/cleanup-local-branches commit d0d8f5abb5

Frequently asked questions

npx skillmds@latest add pekral/cleanup-local-branches