Run the following command to remove all tracking branches that are merged to master
git branch --merged master | sed /master/d | xargs -n 1 git branch -d
Run the following command to remove all tracking branches that are merged to master
git branch --merged master | sed /master/d | xargs -n 1 git branch -d