Help Center/ CodeArts Repo/ User Guide/ Old Version/ More About Git/ Use Cases on the Git Client/ Committing Letter Case Changes in File Names to the Server
Updated on 2023-05-06 GMT+08:00

Committing Letter Case Changes in File Names to the Server

Background

When changes are made to the case of a file name and pushed to the server, the server does not recognize the changes.

For example, a file named AppTest.java is renamed as apptest.java on the Git client. When the change is pushed to the server, the name of the file in the remote server is still AppTest.java.

Procedure

Run the following commands in sequence:

git mv --force AppTest.java apptest.java
git add apptest.java
git commit –m "rename"
git push origin XXX (branch name)