Skip to content
Inspire - Capo Productions

修改文件夹名称大小写

在 Windows 和 macOS 上文件系统是大小写不敏感的,所以直接修改文件夹名字大小写,Git 可能不会识别为改动。正确做法是:

bash
# 1. 修改文件夹名称为一个临时名字
git mv src/views/Home src/views/Home_temp

# 2. 再改为目标名字(大小写)
git mv src/views/Home_temp src/views/home

# 3. 提交修改
git commit -m "Rename folder Home to home"