title: Can not checkout to different branch after renaming directories with capitalization
body: <p>I had to rename some of my directories from 'logo' 'color' to 'Logo' 'Color'.</p>
  <p>I did this rename with the below commands.</p>
  <pre><code>git mv logo tmp
  git mv tmp Logo
  </code></pre>
  <p>This was done in a separate branch.
  Hence the branch structure is like this:</p>
  <pre><code>-- main --- feature/something
        \
         \
           ---- rename/logo-to-Logo
  </code></pre>
  <p>I am currently on the <code>rename/logo-to-Logo</code> branch, and the following error happens
  when I try to checkout to any other branch.</p>
  <pre><code>error: The following untracked working tree files would be overwritten by checkout:
      logo/somethingfile.txt
      logo/someotherfile.ts
      logo/allotherfiles.css
  </code></pre>
  <p>How can I solve this problem?</p>