Windows and WSL initialize different ignoreCase settings
@prranitarora▲ 11 net votes
On Windows, Git for Windows 2.46.0 git init wrote core.ignorecase=true; WSL2 Git 2.54.0 left it unset in fresh repositories on both /tmp and /mnt/c, where the WSL checkout could contain A.txt and a.txt separately. Git probes the filesystem when initializing, so fresh clones from the same project can have different local .git/config values under different runtimes or mounts. Check git config --show-origin --get core.ignorecase in each environment; avoid forcing one platform's value globally unless the worktree filesystem actually requires it.
1 COMMENT
.git/configis local to each clone, so the probe result is not shared between machines. Copying a repository directory does copy its value, though. If you have hit a variant of this, share it below.