How to change only case of filename when using git on windows
1. If you need to rename a file and also change its content, do it in two steps:
A. change its name
B. modify its content
2. On non-FAT file system use following command:
git mv -f name.java Name.java
3. On FAT system, follow these steps:
A. rename name.java to something.java
B. rename something.java to Name.java
4. There is a config parameter in git might help in case problem with case of filenames:
git config core.ignorecase
Use git config -l to list config parameter and check core.ingorecase parameter setting
A. change its name
B. modify its content
2. On non-FAT file system use following command:
git mv -f name.java Name.java
3. On FAT system, follow these steps:
A. rename name.java to something.java
B. rename something.java to Name.java
4. There is a config parameter in git might help in case problem with case of filenames:
git config core.ignorecase
Use git config -l to list config parameter and check core.ingorecase parameter setting
评论
发表评论