#git

Remove branches merged into master

Yuva's avatar

Yuva

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