Note: added here to find it much easier.
1 2 3 4 |
git config core.fileMode false |
From git-config(1):
1 2 3 4 5 6 7 |
core.fileMode If false, the executable bit differences between the index and the working copy are ignored; useful on broken filesystems like FAT. See git-update-index(1). True by default. |
The -c flag can be used to set this option for one-off commands:
1 2 3 4 |
git -c core.fileMode=false diff |
And the --global flag will make it be the default behavior for the logged in user.
1 2 3 4 |
git config --global core.fileMode false |
Warning core.fileMode is not the best practice and should be used carefully. This setting…