ari*_*ele 5 git github github-for-windows
我正在尝试签出具有空格的路径的存储库。git clone / checkout失败。返回以下错误
fatal: cannot create directory at 'main-path/some-folder-with-space /another-folder': No such file or directory
Run Code Online (Sandbox Code Playgroud)
解决:
现在,项目已成功克隆到我的Windows计算机上。我可以签出远程分支,而不会出现任何错误。
假设您在命令行上,您可以使用 转义空格\。
我尝试过与git clone ../some\ folder\ with\ spaces/.
编辑:目标文件夹还包含空格。没问题。您能详细说明一下您是如何尝试克隆的吗?你使用的是命令行还是一些图形用户界面?