'Case-sensitive files and folders in local git Repository in Mac

I am using Mac OS with file system (which has APFS - insensitive file system by default)

Things which I did to make system adapt to APFS case-sensitivity so that I can access Git repo with case-sensitive files:

  1. I created a APFS volume on mac file-system which is case-sensitive and I cloned git repo in this case-sensitive volume which has case-sensitive files.
  2. I set git config --global core.ignorecase false

Now, when I have all the files from the git repository locally,

    for example: 
    2 files which are pushed from unix OS which same name(case-sensitive) like:
    tmp/circletemp.java 
    tmp/CIRCLETEMP.java 

I tried to look for case-sensitive files through bash and I can see all the case-sensitive files.

But when I do git ls-files I cant see the case-sensitive files only one of the file among them is shown.

Did I missed anything which can help this work on mac?

Please help me understand the issue here.

thank you for your help:)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source