Home > Mobile >  How to rename folder from lowercase to uppercase in git
How to rename folder from lowercase to uppercase in git

Time:12-17

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.

CodePudding user response:

Rename in two stages:

git mv abc tmp
git mv tmp Abc
  • Related