Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does git ignore capitalization changes in file names?

Tags:

git

eclipse

I have branch A and branch B.

On branch A, I have a package with the name xyz and I change the package name to xYz. Next, I commit all of my changes and then switch to branch B. Now, once I switch to branch A, the package that I changed still has the value of xyz which is NOT what I committed. This happens in numerous cases.

The question: Does git ignore capitalization changes in file names or is this an issue on my part? I am using the SourceTree client if that helps.

like image 928
tambykojak Avatar asked Nov 29 '25 16:11

tambykojak


1 Answers

You can try to set (as mentioned in the question "Git on windows: Can't switch branch after renaming a file (only changed case)"):

git config core.ignorecase false

And see if the issue persists.

like image 127
VonC Avatar answered Dec 01 '25 13:12

VonC



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!