How do I commit case-sensitive only filename changes in Git?

前端 未结 16 2290
我在风中等你
我在风中等你 2020-11-22 03:31

I have changed a few files name by de-capitalize the first letter, as in Name.jpg to name.jpg. Git does not recognize this changes and I had to de

16条回答
  •  情深已故
    2020-11-22 04:01

    Under OSX, to avoid this issue and avoid other problems with developing on a case-insensitive filesystem, you can use Disk Utility to create a case sensitive virtual drive / disk image.

    Run disk utility, create new disk image, and use the following settings (or change as you like, but keep it case sensitive):

    Mac Disk Utility Screenshot

    Make sure to tell git it is now on a case sensitive FS:

    git config core.ignorecase false
    

提交回复
热议问题