Git is not ignoring file mode changes (chmod), why?
<p>Before start I should say I already looked <a href="https://stackoverflow.com/questions/1580596/how-do-i-make-git-ignore-file-mode-chmod-changes">this post</a> and <a href="https://stackoverflow.com/questions/39038062/git-is-not-ignoring-file-permission-changes">this one</a> as well but for some reason the solutions provided there aren't working for me. My repository is under <code>~/sources</code> so every command was run from that path. This is what I have done:</p>

<p>Change the filemode to false:</p>

<pre><code>$ git config --global core.filemode false
</code></pre>

<p>Check global configuration:</p>

<pre><code>$ git config --list
...
core.filemode=false
core.repositoryformatversion=0
core.bare=false
core.logallrefupdates=true
...
</code></pre>

<p>Reinitialize the repository:</p>

<pre><code>$ git init
Reinitialized existing Git repository in /home/rperez/sources/.git/
</code></pre>

<p>Check what needs to be added|committed:</p>

<pre><code>$ git status
</code></pre>

<p>And I get a list having all the files from the repository. </p>

<p>I am using:</p>

<pre><code>$ git --version
git version 2.9.3
</code></pre>

<p><strong>UPDATE: added git diff for two different files</strong></p>

<pre><code>$ git status
...
    modified:   testing/test-valid-swasset-update.php
...
Untracked files:
  (use "git add &lt;file&gt;..." to include in what will be committed)

    library/mpdf60/ttfontdata/dejavusanscondensedI.GDEFdata.php
...
</code></pre>

<p><code>git diff</code> output from the files above:</p>

<pre><code>$ git diff testing/test-valid-swasset-update.php
diff --git a/testing/test-valid-swasset-update.php b/testing/test-valid-swasset-update.php
old mode 100755
new mode 100644
</code></pre>

<p>What I am missing here?</p>