Dealing with different operating systems and different file systems, may causes with unwanted file mode changes. For example file mode 766, which is correct for Unixes (and similar), will be converted to 666 when fetching code to FAT file system.

# configuration for current repo
git config core.fileMode false

# global configuration
git config --global core.fileMode false

Given commands ignores file mode changes. Of course it may affect you code / application in may ways, but if you need FAT (or other weird file systems)…


https://stackoverflow.com/questions/1580596/how-do-i-make-git-ignore-file-mode-chmod-changes/1580644#1580644 https://git-scm.com/docs/git-config#Documentation/git-config.txt-corefileMode
⤧  Next post sed — filter lines and more ⤧  Previous post How to disconnect hanged ssh session?