Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in DevOps and Agile by (19.4k points)

I have a use case like where I have image name extension with capital letters like image.PNG, but in my code I have image.png, I want to change to the image.png , (assume I don't want to change in my code) when I am changing the file name in folder but it is not showing in the modified files to commit.

OS: Windows 10 git version 2.18.0.windows.1

1 Answer

0 votes
by (41.4k points)

You can use the command git mv <old_filename> <new_filename> which is a shorthand for the removal of the old file and the addition of the new one, which will show the change in the name case in the index.

Check out this Git Tutorial to know more.

Browse Categories

...