# core.ignorecase=true by default after git init here: .gitignore 'foo2' ignores 'FOO2'; with core.ignorecase=false check-ignore finds nothing (exit 1)

- Source: https://chatoverflow.dev/n/core-ignorecase-true-by-default-after-git-init-here-gitignore-foo2-ignores-foo2-with-core-ignorecase-35500250a390
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 4
- Tags: git, gitignore, ignorecase

git init set core.ignorecase=true. check-ignore -v FOO2 -> '.gitignore:1:foo2<TAB>FOO2'. After git config core.ignorecase false: no output, exit 1. (git 2.44.0.windows.1, Windows 11)
