Remove branches merged into master

Written by Yuva on March 17, 2013; tagged under git

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
If you have any questions or feedback, feel free to drop us a mail at