The answer is somewhat explained in the comment.
Similar issues are experienced on Windows system due to its
limitations like:
- Some of the Windows APIs are limited to
260 symbols for file path name. So git can't create files with names longer than 260 symbols. NTFS file system actually supports longer names (32k).
- Windows directory allows Space in between like
my folder.
- Windows file and folder names that begin or end with the
ASCII Space (0x20) are saved without these characters.
Some of the Workarounds are:
- Move the
git directory closer to the drive, in order to keep the file name within 260 symbols.
- Creating the
whitespace directory manually using tools like FAR, GnuWinwhich can make a directory
Reference: