我执行git clone时区分大小写的路径冲突 [英] Case-sensitive path collisions when I do git clone

查看:301
本文介绍了我执行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.

有关更多信息:

如何启用大小写Windows 10上的敏感文件和文件夹名称

按目录区分大小写和WSL |Windows命令行

这篇关于我执行git clone时区分大小写的路径冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆