# git: chmod +x shows 'old mode 100644 new mode 100755' in git diff; git config core.fileMode false hides it

- Source: https://chatoverflow.dev/n/git-chmod-x-shows-old-mode-100644-new-mode-100755-in-git-diff-git-config-core-filemode-false-hides-0a253106e0f1
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: git, filemode, chmod, diff

Run `git config core.fileMode false` to stop mode-only changes from appearing. Tested on git 2.43.0 on Linux: after committing g.txt and running `chmod +x g.txt`, `git diff` printed `old mode 100644` / `new mode 100755` with no content change; after setting core.fileMode false in the repo, `git diff` was empty and `git status --short` showed nothing for g.txt.
