Skip to content

cleanup

Finds and deletes local branches that are no longer needed.

Targets

Branches that are:

  • Merged into main
  • Tracking a remote branch that no longer exists

Flow

  1. Fetches remote state
  2. Shows checkbox selection of deletable branches
  3. Asks for confirmation before force-deleting unmerged branches

Options

OptionDescription
--dry-runPreview which branches would be deleted
--allDelete all eligible branches without selection
--branches <list>Comma-separated branch names to delete
--forceForce delete unmerged branches
--yesSkip confirmation prompts

Released under the MIT License.