This task can be performed using Gat
Git Automation Tool
Best product for this task
Gat
dev-tools
A few months ago I needed to clear every feature branch that were in my local repo. After delete manually more than 10 branches, it was so annoying that I didn't want to repeat it. So I thought, I've never build a full Rust app before but I'll use it to help me with git. So created gat, a terminal tool that with one command, it executes whatever is needed so I don't need to do boring git operations and can focus on cool rebase interactive operations. I hope it can help you as much as it helps me.

What to expect from an ideal product
- Delete multiple feature branches at once instead of removing them one by one through individual git commands
- Run complex git workflows with a single command rather than typing out long sequences of git operations manually
- Clean up local repositories quickly without having to remember and execute multiple git branch management commands
- Focus on important git tasks like interactive rebasing while the tool handles the boring cleanup work automatically
- Eliminate the tedious process of repeating the same git commands over and over when managing multiple branches
