How to force git to rename the file on a Linux environment?

How to force git to rename the file on a Linux environment. I’m using windows on the dev machine and I to push the Linux machine. I renamed the file from Courses.php to courses.php and I push it to git on linux. I’m getting a 404 error after I pushed. When I the repo I see the file name did not change to lower cases as I changed it.

Are there any more details in the 404 error message?

No details. What I see is that the file on local (Windows environment) is courses.php and on repo (Linux environment) is Courses.php. I want the file name with lower case for both.

Can you share a screenshot of what you see when you push it from your windows machine, as well as pull it on your Linux machine?