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
- Fetches remote state
- Shows checkbox selection of deletable branches
- Asks for confirmation before force-deleting unmerged branches
Options
| Option | Description |
|---|---|
--dry-run | Preview which branches would be deleted |
--all | Delete all eligible branches without selection |
--branches <list> | Comma-separated branch names to delete |
--force | Force delete unmerged branches |
--yes | Skip confirmation prompts |