`git diff` shows `old mode 100755` / `new mode 100644` for hundreds of files with no content change.
BeginnerTroubleshootingConfig, Line Endings, Files and Platform Quirks
Answer
Likely causes → The working tree sits on a filesystem that does not store Unix permissions correctly (Windows drive under WSL /mnt/c, FAT/exFAT USB drive, some network shares or container mounts), or someone ran chmod -R.
Diagnose → git diff --summary | grep 'mode change' | head and git config core.fileMode.
Fix → Tell Git to ignore the filesystem's mode bits for this repo: git config core.fileMode false. If the mode change was a real mistake (e.g. chmod -R), undo it with git restore . when no content changes are pending.
Prevent → Keep repos on the native Linux filesystem in WSL (~/src, not /mnt/c), and set the execute bit explicitly in Git with git update-index --chmod=+x.
More on Config, Line Endings, Files and Platform Quirks
`warning: in the working copy of 'app.sh', LF will be replaced by CRLF the next time Git touches it`BeginnerCloning on Windows fails with `error: unable to create file src/very/deep/.../component.test.ts: Filename too long`.BeginnerYou renamed `header.tsx` to `Header.tsx` on macOS. Locally everything builds, but Linux CI fails with `Module not found: Can't resolve './components/Header'`.IntermediateCheckout on Windows fails with `error: invalid path 'logs/2024-01-01T10:00:00.log'` (or `'docs/aux.md'`) and `fatal: unable to checkout working tree`.IntermediateClone prints `warning: the following paths have collided (e.g. case-sensitive paths on a case-insensitive filesystem) and only one from the same colliding group is in the working tree:`IntermediateIn your `~/work` repos commits still use your personal email, even though you configured `includeIf` for work.Intermediate