title: Git ignoring gitconfig?
body: <p>It appears Git is ignoring <code>~/.gitconfig</code></p>
  
  <pre><code>$ git config --global core.filemode false
  
  $ git config -l
  core.filemode=false
  core.filemode=true
  </code></pre>
  
  <p>So now there are 2 entries for <code>core.filemode</code> and git is still not ignoring filemode changes</p>
  
  <pre><code>$ touch modetest
  
  $ git add .
  
  $ git commit -m test1
  [master (root-commit) 320cfe4] test1
   0 files changed, 0 insertions(+), 0 deletions(-)
   create mode 100644 modetest
  
  $ chmod +x modetest
  
  $ git diff
  diff --git a/modetest b/modetest
  old mode 100644
  new mode 100755
  </code></pre>
  
  <p>Based on <a href="https://stackoverflow.com/a/10377092">torek’s answer</a>, I added this line to my <code>.bash_profile</code></p>
  
  <pre class="lang-sh prettyprint-override"><code>[ -d .git ] &amp;&amp; git config core.filemode false
  </code></pre>