HFS+ File system is NOT case-sensitive but case-preserved!

  • On MacOS system, cloned a git repository with two directories: 1) Assignment and 2) assignment. [Notice the A vs a].
  • Couldn’t find the folder “Assignment” locally
  • Remote git seems to have this folder.
  • Tried to find out whether local git repository was not updated or not.
  • Checked the commit ID, checked the log and confirmed that the local repository is up-to-date!
  • OMG … what happened!!!!!!!!!!!!!!!!!!!!!!!!!!!
  • Tried to check whether the correct git command was used. Read about git fetch, git pull, etc, etc.
  • Feeling frustrated.
  • Got no work done.
  • Suspicious that may be there’s some problem with case-insensitive on MacOS. Therefore, tried Google “macos filename case sensitive”.
  • Finally, found the answer to the problem on Google https://apple.stackexchange.com/a/22304/179773


See the result below.


case insensitive macos
case-insensitive but case-preserved

Author: Bhoom Suktitipat

My name is Bhoom Suktitipat. I am currently an assistant professor at Faculty of Medicine Siriraj Hospital, Mahidol University.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.