title: Git BASH delete all local branches matching a pattern
body: <p>I was trying to create a branch by the name <code>test/miwarren/memberLead</code>, but had orphan local branches (i.e. branches that were merged and then deleted on remote), which prevented that:</p>
  <pre><code>$ git checkout -b test/miwarren/memberLead
  fatal: cannot lock ref 'refs/heads/test/miwarren/memberLead': 'refs/heads/test/miwarren/memberLead/dob' exists; cannot create 'refs/heads/test/miwarren/memberLead'
  
  </code></pre>
  <p>I created branch for each member lead test sub-suite that I was working on at the time.</p>
  <p>How to find and delete them all, so that I can create my branch?</p>