Solution:
Currently, git for windows does not support trailing spaces in filenames, and there is a reason for it: Win32 does not handle such paths, though you could break through to NTFS using the "\\?\..."
UNC path trick. If you happen to have such path, and it is not some mistake, probably the project is not intended to be used at Windows.
As far as understand, you have the following options:
- ask project author to rename the file/directory in question or do it yourself
- try using git from a cygwin/msys2 build. The msys2 wrapper handles some Windows path issues, transforming them into legal ones, though I don’t know if it handles this issue.
- fix git for windows – take into use the UNC path. The maintainer said he would consider taking such patch.
- if you don’t really need to work on the file or directory, you could exclude it from checkout using sparse checkout.