dan3460's avatar

Change Github folder name

I don't have in my windows environment case sensitivity. So i created a couple of directories under my Livewire directory with lower case and it should have been with the first letter in upper case. I corrected this in windows but it did not produce any updates for github. So now i'm afraid that when deploying on a Ubuntu server i'm going to have a problem. Is there anyway in github to change the name of the folder? or i have to delete the folder in window and recreate it with the correct upper case? Thanks for the help.

0 likes
3 replies
martinbean's avatar

@dan3460 You should use the Git commands for renaming files and directories (even if it’s just changing the case):

git mv path newpath
git rm path

And so on. These changes will then be recorded in your Git history.

jlrdw's avatar

or i have to delete the folder in window and recreate it with the correct upper case?

No rename it twice

myfolder

To

myfolderz

Then

Myfolder

Has worked for me. That way you don't accidentally lose any files.

Please or to participate in this conversation.