unix上文件是区分大小写的,但是unix上不支持大小写,所以需要将windows目录转换为区分大小写的文件目录。
参考文章
玩转Github系列之二——使用git时涉及的文件名大小写不敏感问题
约束:
需要目录所在分区是ntfs格式
启动windows上的linux子系统功能
新的目录必须初始的时候为空
fsutil.exe file SetCaseSensitiveInfo xxx(dir of source) enable #打开文件名区分大小写
git config core.protectNTFS false 关闭ntfs保护