Does git really require a case-sensitive filesystem?

I am trying to learn Android and following the build instructions.

I noticed from the Android doc that "When installed by default, Mac OS runs on a case-preserving but not case-sensitive filesystem. This type of filesystem is not supported by git and calls some git commands (like" git status ") to behave abnormally. "

I am wondering, once you install Xcode and the developer tools, git is already there. So does this relate to any git issue since the Mac FS is case insensitive by default?

+3


source to share


1 answer


No, git does not require a case sensitive filesystem.

I am using Windows (ntfs is case insensitive) and have no problem using git. However, you shouldn't have multiple files with the same name that differ only in their email shell. If so, you might lose data as git treats it as a single file.

Note that the file also has a parameter that defaults to . You might want to set this flag to , because if you change the shell of the letters of an already existing file, git cannot otherwise recognize the change. .git/config

ignorecase

false

true



However, only change this flag with the first commit - don't change it midway through development. I am currently working on a project like this and we have dozens of problems because git doesn't seem to be able to handle it.

In some other projects, setting the flag to true during development worked well, but the possibility of overlaying your repo still exists.

+2


source







All Articles