Ole Begemann 12/16/2025

Use 'git mv' to record filename case changes in Git

Read Original

This technical article details a common Git pitfall: when renaming a file by only changing its letter case (e.g., A.txt to a.txt) on case-insensitive file systems, Git fails to detect the change unless you use the 'git mv' command. It demonstrates the problem with examples and explains the potential deployment issues it can cause, especially when code runs on case-sensitive systems.

Use 'git mv' to record filename case changes in Git

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week