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:
FOOBar.java
FooBar.java
I had a similar problem and i fixed it changing git config:
git config core.ignorecase false