Skip to main content

Ignore file mode changes in git

As I do not want to manage my file modes with the git repo I'm rather annoyed when a simple file mode change states as changed files in git status or in git diffs. To really get rid of these unnecessary file changes I used to set core.filemode to false in each repo.

But with updates for older sites it often occured to me, that I forgot to set this filemode an run into always the same problem again and again and ...

To get rid of these messages once and for all I put

git config --global --replace-all core.filemode false
 

For now I hope this works on my current workstation even for repos I clone fresh from github or bitbucket ...