Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

case sensitivity issue - rename a folder in git [duplicate]

Tags:

git

I have a folder called Utils.

After checking it in to remote I see it appears as utils which fails the build.

I tried to follow renaming methods (maybe I'm doing it wrong) but I'm not able to change it. This is what I tried.

git mv utils Utils

I'm getting a message that the action failed with no other info

like image 611
Ace Avatar asked Oct 17 '25 11:10

Ace


1 Answers

Rename the folder to something else first, then rename it to your expected name:

git mv utils tmp
git mv tmp Utils
like image 88
knittl Avatar answered Oct 20 '25 01:10

knittl