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

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

    1) rename file Name.jpg to name1.jpg

    2) commit removed file Name.jpg

    3) rename file name1.jpg to name.jpg

    4) ammend added file name.jpg to previous commit

    git add
    git commit --amend
    

提交回复
热议问题