I don’t have a Windows computer to test it, but you should be able to quote all the way with double quotes or avoid all backslash spaces one at a time.
If this does not work, try making a symbolic link that has no spaces, and a link to the symbolic link from git.