In the field development, the count of branches reaches form 1 to 40 50 in like no time. and most of them are of no use ones merged into the master. It's 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 what I found online (I’ll give the source below).

git branch | grep -v "master" | xargs git branch -D

I guess this was helpful