How to deleted all branches merged into the current branch
The following command deletes all the branches(except for master and develop branches) that are already merged into the currently checked out branch
git branch --merged | grep -v "(^*|master|develop)" | xargs git branch -d
git branch --merged
 
    