I have git repo, some of us work on it on different computers, some on windows, on some Linux.
The problem is changing the file permissions several times to configure the web server. This way they are displayed in git diff. I ignored the file changes with the command
git config core.filemode false
But this needs to be done for each user, every time we deploy the code to a web server, etc.
In any case, we can specify to ignore permissions for this repo. Something like a .gitattributes file, so every time someone clones this repo, any changes in file permissions are ignored without running "git config core.filemode false"?
source
share