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

前端 未结 16 2486
我在风中等你
我在风中等你 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 03:54

    Mac OSX High Sierra 10.13 fixes this somewhat. Just make a virtual APFS partition for your git projects, by default it has no size limit and takes no space.

    1. In Disk Utility, click the + button while the Container disk is selected
    2. Select APFS (Case-Sensitive) under format
    3. Name it Sensitive
    4. Profit
    5. Optional: Make a folder in Sensitive called git and ln -s /Volumes/Sensitive/git /Users/johndoe/git

    Your drive will be in /Volumes/Sensitive/

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

提交回复
热议问题