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

前端 未结 16 2556
我在风中等你
我在风中等你 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条回答
  •  猫巷女王i
    2020-11-22 03:56

    Using SourceTree I was able to do this all from the UI

    1. Rename FILE.ext to whatever.ext
    2. Stage that file
    3. Now rename whatever.ext to file.ext
    4. Stage that file again

    It's a bit tedious, but if you only need to do it to a few files it's pretty quick

提交回复
热议问题