I have a directory in my git repository (but not on my local system) named
"my\\directory-name"
It contains two quotation marks and two backslashes.
The problem is that with this directory in my repo it is not possible to checkout the contents completely because (error message:) git doesn't find a directory named
my\directory-name
(I still can checkout every other directory and file separately..)
I already tried to escape the characters..
git rm -r '"my\\directory-name"'
git rm -r \"my\\\\directory-name\"
but git doesn't find any file matching. With git ls-tree HEAD I can see the directory in the repo.
Can anyone tell me how to remove such a directory from the git repo?
I wasn't able to try this out, because my problem somehow solved itself. I checked out the files and directories from the repo one by one on another Windows system, except the "broken" directory. Then, when I commited the next time from my new working copy, the directory was in delete mode, so I simply could push and the directory was removed on the repository.