title: Why .gitconfig [includeIf] does not work?
body: <p>System settings:
  <code>MacOS Catalina 10.15.6</code></p>
  <pre><code>&gt; git --version
  git version 2.24.3 (Apple Git-128)
  </code></pre>
  <p>file: <code>~/.gitconfig</code> :</p>
  <pre><code>[user]
      name = nickname
      email = nickname@gmail.com
  [includeIf &quot;gitdir:~/Business&quot;]
      path = ~/.gitconfig-work
  </code></pre>
  <p>file: <code>~/.gitconfig-work</code> :</p>
  <pre><code>[user]
      name = First Last
      email = fl@work.com
  </code></pre>
  <p>Output when trying to check the configuration on terminal:</p>
  <pre><code>(base) MBP-Name:~ myname$ cd ~/Business/
  (base) MBP-Name:Business myname$ git config --get user.name
  nickname
  </code></pre>
  <p>I have tried both relative <code>~</code> and absolute <code>/</code> paths either for <code>gitdir</code> and <code>path</code> in the config file. On each change I am restarting the bash. Also, I have read several other stackoverflow questions with no success. Some of them where suggesting adding the <code>i</code> option for case insensitivity but it didn't fix the problem.</p>
  <p>Any ideas ?</p>