title: Git 2.13 conditional config on windows
body: <p><strong>Git version:</strong> 2.13.0.windows.1</p>
  
  <p><strong>OS:</strong> Windows 7</p>
  
  <p><strong>CLI:</strong> Git bash</p>
  
  <p><strong>.gitconfig</strong></p>
  
  <pre><code>[user]
      name = Gyandeep Singh
      email = private@email.com
  [push]
      default = current
  [core]
      autocrlf = input
  [includeIf "gitdir: ~/Documents/webstorm/corporate/"]
      path = .gitconfig-work
  </code></pre>
  
  <p><strong>.gitconfig-work</strong></p>
  
  <pre><code>[user]
      name = Gyandeep Singh
      email = corporate@email.com
  </code></pre>
  
  <ul>
  <li>Both the config files above sit together in the same directory (home).</li>
  </ul>
  
  <p><strong>What happened:</strong> open CLI on a folder (example test) inside corporate folder and then run <code>git config user.email</code> the output is <code>private@email.com</code>.</p>
  
  <p><strong>Expected:</strong> Outcome should be <code>corporate@email.com</code>.</p>
  
  <p>Am I doing something wrong or my expectation is not correct? I did follow the git docs.</p>
  
  <h2>Solution</h2>
  
  <p>You have to run <code>git config --show-origin --get user.email</code> on a git initialized directory. If its not git initialized then the <code>includeIf gitdir</code> functionality will not work.</p>
  
  <p>Its strange but true. I wish it still worked.</p>