title: Git includeIf for personal and work profiles doesn't work
body: <p>I've been googling about this, trying different methods from different sources... but it doesn't work.</p>
  <p>I want to push commits with my personal profile (defined with &quot;git config --global user.email ...&quot;) unless I'm on my work folder.</p>
  <p>The content of my .gitconfig is located at C:/Users/my-user/</p>
  <pre><code>[user]
      name = Personal
      email = personal@personal.com
  
  [includeIf &quot;gitdir: F:/Work/CompanyName/&quot;]
      path = F:/Work/CompanyName/.gitconfig-work
      
  </code></pre>
  <p>Content of my .gitconfig-work is located at F:/Work/CompanyName/</p>
  <pre><code>[user]
      name = Work
      email = work@work.com
  </code></pre>
  <p>When I go to a cloned repository from work located at:</p>
  <p><code>F:/Work/CompanyName/Project</code></p>
  <p>I use:</p>
  <p><code>git config --show-origin --get user.email</code></p>
  <p>And it shows:</p>
  <p><code>file:C:/Users/&lt;my-user&gt;/.gitconfig </code></p>
  <p>Instead of the route I defined to work.</p>
  <p>Thanks for your help.</p>
  <h1>✨ For the future googlers</h1>
  <p>I created a <a href="https://gist.github.com/Icaruk/f024a18093dc28ec1588cfb90efc32f7" rel="noreferrer">gist</a> explaining the steps.</p>