Project give various errors after renaming files

Godot 4.2.2
Windows 10

Recently I renamed files in my project and Godot starts behave wierdly.
Im using git with ignorecase = false.
Every time when a teammember updates project files there appear errors

error 1

res://scripts/player/player.gd:1 - Parse Error: Class "Player" hides a global script class.
modules/gdscript/gdscript.cpp:2788 - Failed to load script "res://scripts/player/player.gd" with error "Parse error".

godot sees files in paths “Player/player.gd” and “player/player.gd”
изображение
But folder “Player” is no longer exists.
I have same issue with couple other scripts.

error 2

Expected Image data size of 636x386x1 (DXT5 RGBA8 with 9 mipmaps) = 330032 bytes, got 330672 bytes instead.
drivers/gles3/storage/texture_storage.cpp:989 - Condition "image->is_empty()" is true. Returning: Ref<Image>()

Idk what is this.

Questions

How to fix project’s links to files and how to make defference between “Player” and “player” folder? So Godot stop thik that there is a “Player” folder.

Windows ignores capitalization in folder and file names, the underlying filesystem can still create folders and files with different capitalization (i.e Player vs player). You might have to remove the old files through git command line or some program capable of reading capitalization differences.

Well I found that repo have both Player and player folders.
I used git rm -r scripts/Player
But git deleted both folders
изображение

looks like git doesnt see difference between Player and player.
But at the same time git config have ignorecase = false and git recognizes changes in both Player and player:thinking:

And when I’m trying to checkout git warns me about changes that is not displayed in changes tab!
All errors connected to renamed files.

Might be best to pull a new copy of the repo, or make a bootable linux usb to fix the files. As git seems to be unable to access capitalized files through windows, despite what I thought