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

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

    This is what I did on OS X:

    git mv File file.tmp
    git mv file.tmp file
    

    Two steps because otherwise I got a “file exists” error. Perhaps it can be done in one step by adding --cached or such.

提交回复
热议问题