Skip to content

Commit

Permalink
📖 更新文章
Browse files Browse the repository at this point in the history
  • Loading branch information
fxzer committed Sep 13, 2024
1 parent 0f3b4df commit fd02c42
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions docs/Problem/Git/远程-本地文件名大小写冲突.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
## 远程-本地文件名大小写冲突

例如远程 `src/views/abutmentWay.vue`, 本地 `src/views/AbutmentWay.vue`

## 解决方法:

1. 删除远程文件:

```zsh
git rm --cached src/views/abutmentWay.vue
git commit -m "chore: Remove file with incorrect case"
git push
```

2. 然后添加并推送正确的文件:

```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
```

0 comments on commit fd02c42

Please sign in to comment.