GIT: remove all local branches that are not available on origin anymore

git branch --merged master | grep -v '^ *master$' | xargs git branch -d

Leave a Reply

Your email address will not be published. Required fields are marked *