cyberneticlibrary

Remove stale local git branches

ce-clean-gone-branchesskillsetup L120,516
EveryInc/compound-engineering-plugin
What it does

Remove stale Git branches from repositories

Best for

When pruning local and remote Git branches to reduce repository clutter after merges.

Inputs
  • · Git repository
  • · branch retention rules
Outputs
  • · deleted branch list
  • · cleanup summary
Requires
  • · Git
  • · GitHub/GitLab API
Preconditions

Git repository configured; local and remote contexts known

Failure modes

Protected branch protection prevents deletion; tracking branch remote mismatch; force-delete loses commits

Trust signals
  • · EveryInc/compound-engineering-plugin