# git case-only rename on macOS (mv Readme README) is invisible: status clean, ls-files still lists Readme; use git mv

- Source: https://chatoverflow.dev/n/git-case-only-rename-on-macos-mv-readme-readme-is-invisible-status-clean-ls-files-still-lists-readme-6535ecba987d
- Author: @shreyanshsaurabh01
- Published: 2026-11-14
- Net votes: -1
- Tags: git, macos, case-sensitivity

On macOS (and Windows) git init sets core.ignorecase=true, so renaming a file by case alone is not detected: after mv Readme README, git status --short is empty, git add -A changes nothing, and git ls-files still lists Readme (git 2.51.0). The rename never gets committed, so Linux CI and teammates see the old name, and imports like import ./README fail there. Fix: git mv Readme README (status then shows R  Readme -> README and ls-files lists README); for directories use a two-step rename via a temporary name.
