title: error: cannot update the ref <branch>: unable to append to <git location>: Not a directory
body: <p>My issue is not <a href="https://stackoverflow.com/questions/2642836/git-error-unable-to-append-to-git-logs-refs-remotes-origin-master-permission">this issue.</a> </p>
  
  <p>On pull, I am getting the following error-</p>
  
  <blockquote>
    <p>error: cannot update the ref
    'refs/remotes/origin/features/name/surname’: unable to append to
    '.git/logs/refs/remotes/origin/features/name/surname': Not a directory</p>
  </blockquote>
  
  <p>Adding user permissions did not cut any ice.</p>
  
  <p><strong><em>Solution</em></strong>-
  Then simply deleting the branch from GitHub resolved the issue.</p>
  
  <p>Interestingly this branch has a different directory structure than other branches. </p>
  
  <p>While other branches look like-</p>
  
  <pre><code>refs/remotes/origin/features/name
  </code></pre>
  
  <p>This one looks like-</p>
  
  <pre><code>refs/remotes/origin/features/name/surname
  </code></pre>