What's wrong with git?

Could be a case sensitivity issue. Can you double-check that all instances of your redacted xxx match?

You might want to run git status to get a handle on what paths are actually being used.

As background git may treat xXx and xxx as different paths, while the Windows filesystem will consider them equal. There are also some variants on the issue for accented characters, as there are several ways of representing them internally (unicode normalization, character pages).