1

Everytime I execute composer update,

Class Database\Seeders\Abc\DatabaseSeeder located in D:/Codes/PHP/Chinabing/httpdocs/database/seeders\abc\DatabaseSeeder.php does not comply with psr-4 autoloading standard. Skipping.
Class Database\Seeders\Abc\SomeSeeder located in D:/Codes/PHP/Chinabing/httpdocs/database/seeders\abc\SomeSeeder .php does not comply with psr-4 autoloading standard. Skipping.

I think this is because the folder name is "abc".

So I want to change

D:\web\myproject\database\seeders\abc  

To

D:\web\myproject\database\seeders\Abc  

I have done

git config --global core.ignorecase false
git config --local core.ignorecase false
git config core.ignorecase false

and

git mv abc Abc
Rename from 'database/seeders/abc' to 'database/seeders/Abc/abc' failed. Should I try again? (y/n)

"Abc/abc" ??

I have saw other solutions, all of them talk about file name, not folder name.

ronrun
  • 1,046
  • 2
  • 14
  • 33
  • You could try this command ```git mv ``` – JC3 Dec 16 '22 at 16:59
  • Your underlying file system is case insensitive (NTFS on Windows) so you'd have to go via some other directory name since both `abc` and `Abc` are the same for this file system. – fredrik Dec 16 '22 at 17:03
  • oh, and I assumed you are using Windows due to the paths you're using. If you're not - let us know what you're actually using – fredrik Dec 16 '22 at 17:04
  • yes, it's windows. and doesn't work. – ronrun Dec 16 '22 at 17:14
  • `git mv abc tmp && git mv tmp Abc` – phd Dec 16 '22 at 17:26
  • phd, it works. Why are you so smart~ – ronrun Dec 16 '22 at 17:30
  • I saw that solution in answers many times. https://stackoverflow.com/q/17683458/7976758 Found in https://stackoverflow.com/search?q=%5Bgit%5D+rename+case-sensitive – phd Dec 16 '22 at 17:31
  • 1
    Oh, I think I saw this post. But it didn't mark as "Answer", so I didn't see the whole content. Can you please Answer this, I'll mark it. – ronrun Dec 16 '22 at 17:38

1 Answers1

0

Rename in two stages:

git mv abc tmp
git mv tmp Abc
phd
  • 82,685
  • 13
  • 120
  • 165