List all git local branches that start with string
To list all branches that begin with "abc":
git branch --list "abc*"
So if you want to delete them, then run the following:
git branch --list "abc*" | xargs --no-run-if-empty git branch --delete
You can append the --force
flag to the command above if you want to live dangerously.