title: How to remove local branches that have no differences to master?
body: <p><a href="https://stackoverflow.com/q/6127328/2687324">How can I delete all git branches which have been merged?</a> show how to delete branches that have been merged. However, in GitHub, there is now a "Squash and merge" and a "Rebase and merge" option, both of which is not detected by <code>git branch --merged</code>.</p>
  
  <p>Is there a way to identify all the branches that essentially generates an empty commit if merged into master?</p>
  
  <p>EDIT: looking for a programmatic way via the CLI, similar to the linked question.</p>