In the field development the count of branches reach form 1 to 40 50 in like no time. and most of then are of no use ones merged into the master. Its better to get rid of them but deleting them is a major pain in the ass.
Here is a proposed git command i found online, i repeat i found online (i’ll give the source below).
git branch | grep -v "master" | xargs git branch -D
i guess this was helpful