title: Having trouble deleting a local branch even after checkout to another branch
body: <p>I'm trying to delete my local branch and tried most of the solutions I found on here which is to checkout to another branch and then run <code>git branch -D (or -d) &lt;my_branch&gt;</code>. I tried that but I am still getting the same error that states "Cannot delete branch 'my_branch' checked out at 'my_path'</p>
  
  <p>How I got myself in this situation: I branched off of my develop branch by doing <code>git worktree add -b branch_name ../project_name develop</code>. Then I realized I wanted to change my branch name so I deleted the entire directory first by using <code>rm- rf</code>. Now my_path is pointing to a deleted directory so I'm not sure what to do now.  Help will be appreciated. I'm running on Windows 7 using Git Bash</p>
  
  <p>Things I have tried:</p>
  
  <ol>
  <li>Restarting my computer</li>
  <li>Reinstalling Git Bash</li>
  <li>Checkout to another branch and try <code>git branch -d</code> and <code>git branch -D</code></li>
  </ol>
  
  <p>Screenshot of error:
  <img src="https://i.imgur.com/MLiTl19.png" alt="git branch delete error">
  The (virtualBDD) is my virtual environment. You can ignore that.</p>