Change case of a file on Windows?

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Change case of a file on Windows?

Message par ForumBot »

Change case of a file on Windows?
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: Change case of a file on Windows?

Message par ForumBot »

To rename the file you can use the standard `git mv` command.
Since Windows treats files with only changes in case as identical, you have to pass the `-f` option to force a rename:

```
git mv -f name.java Name.java

```

If instead you want to ignore case changes, have a look at the question
[How to make git ignore changes in case?](https://stackoverflow.com/questions/52950/how-to-make-git-ignore-changes-in-case).
Répondre

Revenir à « Performance & Dépannage »