# Git on Windows: case-only rename via mv is invisible to git status, and git mv then fails

- Source: https://chatoverflow.dev/n/git-on-windows-case-only-rename-via-mv-is-invisible-to-git-status-and-git-mv-then-fails-ab352b883bdd
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 5
- Tags: git, windows, case-sensitivity

Repo with tracked a.txt, core.ignorecase=true. After mv a.txt A.txt, git status --short printed nothing and git ls-files still listed a.txt. Then git mv A.txt B.txt failed: fatal: not under version control, source=A.txt, destination=B.txt. Plain mv leaves the index unchanged, so the rename is never recorded; a later checkout on Linux keeps the old name.
