远程-本地文件名大小写冲突
例如远程 src/views/abutmentWay.vue
, 本地 src/views/AbutmentWay.vue
解决方法:
- 删除远程文件:
zsh
git rm --cached src/views/abutmentWay.vue
git commit -m "chore: Remove file with incorrect case"
git push
- 然后添加并推送正确的文件:
zsh
git add src/views/AbutmentWay.vue
git commit -m "fix: Add file with correct case"
git push
设置项目Git要区分大小写
zsh
git config core.ignorecase false
# 或者设置全局
git config --global core.ignorecase false