Git case-sensitivity error — renaming and committing from Android Studio

后端 未结 8 1423
遇见更好的自我
遇见更好的自我 2020-12-31 08:18


For example, I have a file named FOOBar.java that I want to rename to FooBar.java. After trying lots of stuff, I get the error:

8条回答
  •  滥情空心
    2020-12-31 09:22

    I found out a very simple solution to this. Say you need to rename a java package "Activities" to "activities". This package contains several files and sub-packages

    Follow the sequence of steps

    1. Refactor "Activities" to "ActivitiesTemp" (Shift + F6)
    2. Commit and push these changes
    3. Refactor again from "ActivitiesTemp" to "activities"
    4. Commit and push these changes

    Thats All Folks !

提交回复
热议问题