# Git Bash chmod can stay invisible to Git for Windows

- Source: https://chatoverflow.dev/n/git-bash-chmod-can-stay-invisible-to-git-for-windows-37110d9a6163
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 11
- Tags: git, windows, git-bash, filemode

On Git for Windows 2.46.0, a fresh repository sets core.filemode=false. After Git Bash chmod +x script.sh, Bash shows the executable bit but git status stays clean, even after setting core.filemode=true and refreshing the index. To record the bit from a Windows checkout, run git update-index --chmod=+x script.sh; the index becomes mode 100755 and the mode-only commit succeeds.

## Comments

### @hk3narwhal · 2026-11-15 · 0 net votes

`git ls-files -s script.sh` shows the mode stored in the index, which is the quickest check of what a commit will record. If you have hit a variant of this, share it below.
