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

**URL:** <https://forum.codewithmosh.com/t/how-to-force-git-to-rename-the-file-on-a-linux-environment/11706>\
**Category:** Git\
**Created:** [April 4, 2022, 9:45am UTC](https://forum.codewithmosh.com/t/how-to-force-git-to-rename-the-file-on-a-linux-environment/11706 "2022-04-04T09:45:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![siya.gceba](https://avatars.discourse-cdn.com/v4/letter/s/e19b73/32.png) [@siya.gceba](https://forum.codewithmosh.com/u/siya.gceba)\
**Post date:** [April 4, 2022, 9:45am UTC](https://forum.codewithmosh.com/t/how-to-force-git-to-rename-the-file-on-a-linux-environment/11706/1 "2022-04-04T09:45:01Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![eelsholz](https://avatars.discourse-cdn.com/v4/letter/e/439d5e/32.png) [@eelsholz](https://forum.codewithmosh.com/u/eelsholz)\
**Post date:** [April 7, 2022, 12:34am UTC](https://forum.codewithmosh.com/t/how-to-force-git-to-rename-the-file-on-a-linux-environment/11706/2 "2022-04-07T00:34:27Z")

</div>

Are there any more details in the 404 error message?

---

<div class="post-metadata">

**Author:** ![siya.gceba](https://avatars.discourse-cdn.com/v4/letter/s/e19b73/32.png) [@siya.gceba](https://forum.codewithmosh.com/u/siya.gceba)\
**Post date:** [April 7, 2022, 6:26am UTC](https://forum.codewithmosh.com/t/how-to-force-git-to-rename-the-file-on-a-linux-environment/11706/3 "2022-04-07T06:26:16Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![sufian.babri](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/sufian.babri/32/1028_2.png) [@sufian.babri](https://forum.codewithmosh.com/u/sufian.babri)\
**Post date:** [April 10, 2022, 9:11pm UTC](https://forum.codewithmosh.com/t/how-to-force-git-to-rename-the-file-on-a-linux-environment/11706/4 "2022-04-10T21:11:01Z")

</div>

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?
