title: How can I delete all git branches which have been "Squash and Merge" via GitHub?
body: <p>Ever since GitHub introduced <a href="https://github.com/blog/2141-squash-your-commits" rel="noreferrer">Squash and Merge</a>, all the cool kids at my workplace are using it when merging pull requests. Is there a way to cleanup "Squash and Merge" branches? </p>
  
  <p>The following command from <a href="https://stackoverflow.com/questions/6127328/how-can-i-delete-all-git-branches-which-have-been-merged">How can I delete all git branches which have been merged?</a> does not work for "Squash and Merge":</p>
  
  <pre><code>git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d
  </code></pre>