I am trying to checkout a repository with paths that have spaces. git clone/checkout failed. The following error is returned
fatal: cannot create directory at 'main-path/some-folder-with-space /another-folder': No such file or directory
Resolved by:
- Download project zip from github.
- Extract the project.
- git init
- git remote add origin [email protected]:MainRepo/project.git
- git fetch --all
Project is now successfully cloned to my windows machine. I can checkout the remote branches without any errors.