Cover photo

Case-insensitive on Mac OS

I’m a Linux hacker, I’m now starting to use a Macbook Pro 16’’ 2021 I received yesterday that I ordered 2 months ago, I just tried to git clone the upstream Linux repo into this new laptop, but when the git-clone almost finished, there is a warning showed up like this:

post image

This because the default volume on Mac OS partition is case-insensative, all these files are both uppercase and lowercase each other on names like pairs, and only one of the pair is written on disk, so the left one of the pair is in untracked status:

post image

The easy way to fix this is to create a case-sensitive volume and git clone into this volume, I created it in Disk Utility:

post image

Then git-clone in this volume is successful without problem. It’s good that case-insensative setting is in volume not filesystem, this makes the way to fix a bit easier, if this is set on filesystem level, I think the only way to fix this is re-formatting the whole disk, that would be so upset…