Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git commit the wrong filename first letter uppercase [duplicate]

The git don't commit the correct filename first letter uppercase. In my workspace, I have a User.js, but in the git status, it shows user.js, and no matter how many time I change and commit User.js, the git still treats it as user.js and pushed to the server Where the app not executing because the incorrect filename. How to change the user.js in the git to User.js to match my working filename?

like image 820
yong ho Avatar asked Jul 21 '26 14:07

yong ho


1 Answers

You have to use git to rename it or it wouldn't know:

git mv user.js User.js

http://git-scm.com/docs/git-mv

like image 94
jgillich Avatar answered Jul 23 '26 05:07

jgillich