我执行git clone时区分大小写的路径冲突 [英] Case-sensitive path collisions when I do git clone
问题描述
当我git克隆存储库时,出现以下警告:
when I git clone the repository the following warning appears:
...
warning: the following paths have collided (e.g. case-sensitive paths
on a case-insensitive filesystem) and only one from the same
colliding group is in the working tree:
'components/User/index.js'
'components/user/index.js'
我一直在阅读,可能是Windows问题,因为在文件夹路径中未启用区分大小写.我还尝试了 git config --global core.ignorecase false
,但是它一直失败.
I've been reading and it may be a windows problem since case sensitive is not enabled in the folder paths. I also tried with git config --global core.ignorecase false
but it keeps failing.
我使用Windows 10和git版本2.28.0.windows.1
I use Windows 10 and git version 2.28.0.windows.1
有人也看到这个问题吗?
Does anyone also see this problem?
推荐答案
使用Windows 10的功能对每个目录启用区分大小写.
Use Windows 10's ability to enable case sensitivity on a per-directory basis.
此外, Linux的Windows子系统让我们将Windows文件夹安装为区分大小写.
Also, Windows Subsystem for Linux let's you mount Windows folders as case sensitive.
有关更多信息:
这篇关于我执行git clone时区分大小写的路径冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!