If you rename a file on macOS, macOS displays the newly-cased filename but Git doesn’t see any changes (if you only change the case).
To ensure Git also recognizes that change, you need to use git mv
instead of mv
(or renaming the file in Finder) to rename the file.
This only works for files under version control of Git – which makes sense as it’s only relevant for files that Git already knows/watches.