I cannot cd into some of my .git directories on Windows.
Some of my repositories are fine. The .git directory appears as you would expect in them:
drwxrwx---+ 1 grandps Domain Users 0 Oct 11 15:42 .git
I can cd into the .git directory, and ls it to see its contents.
In other repos, the .git directory shows up as a regular file. I can't cd into it or ls to see its contents. If I try to open it in Windows Explorer, I can't - Windows thinks it's a file, too.
-rwxrwx---+ 1 grandps Domain Users 68 Jun 22 12:22 .git
The repo still works as a git repository. I can run git commands just fine. I just can't get into the .git folder.
I have tried both Git Bash (MinGW64) and Cygwin. Both give the same results.
Any ideas how this could have happened, and how I can fix it?