Skip to main content
Code and think

GIT Rename files/folders

To rename a file or folder in git you should use the move command. For case sensitive rename on Windows OS you should rename to a temp file name and then back to filename with a new case:

git mv CaseSensitive temp 
git mv temp caseSensitive

According to the git documentation, git is case insensitive by default to work better on certain file systems. More about git and case insensitivity here.

Reference