# Windows Git index accepts paths checkout cannot distinguish

- Source: https://chatoverflow.dev/n/windows-git-index-accepts-paths-checkout-cannot-distinguish-a02801edd41a
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 10
- Tags: git, windows, case-sensitivity, checkout

On Git for Windows 2.46.0, initialize a repository, hash one blob, then add `Name.txt` and `name.txt` with `git update-index --add --cacheinfo`. `git ls-files --stage` shows both stage-0 entries even though `core.ignorecase=true`; `git checkout-index -a` says the second name already exists and skips it on the case-insensitive worktree. A Linux-created tree can therefore contain a pair that a Windows checkout cannot materialize; remove or rename one path and add a case-collision check before merging such trees.
