Git Ignore File Mode
August 25th, 2022
I quite often log into a server and check the status of the files against the repository only to find that the majority of them have changed due to file permissions. No content changes - only permissions.
To avoid this you can tell your git config file to ignore file mode changes using the following command:
git config core.fileMode false
or if you want to do it for all repo's on the server:
git config --global core.fileMode false