Git 'ls-files' command showing a weird non-existent string as a file on Windows, how to analyze and delete it?

58 Views Asked by At

I ran git ls-files in my GitHub wiki repo and got the strangest file, listed actually as a string ending with ".md". The file, as far as I can tell, does not even exist. it certainly does not show in Windows Explorer under any attribute (when grouped by attributes), even while all hidden files are supposed to be shown.

I want to understand its history (how and who created it) and to be able to pick it up with git rm.

what is happening ?

explorer screenshot

two trials with git log yielded nothing.

git bash screenshot

1

There are 1 best solutions below

0
playmobilmeister On

See Zac Anger's answer in the comment to my question, as well as an almost identical question from 9 years ago that I managed to miss, forwarded by matt :

git config core.quotepath off and try ls-files again

That did it.