Reputation: 2159
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.
Upvotes: 3
Views: 2737
Reputation: 1327384
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.
Upvotes: 11
Reputation: 307
It does ignore on mac too. Move the file somewhere else, add to index and than commit. After that get the file back and commit. Capitalisation schould be fixed.
Upvotes: 0