[已解决]windows 上面git 克隆clone 的时候报错 warning:Clone succeeded,but checkout failed

时间:2024-03-24 12:44:39

fatal unable to checkout working tree

warning:Clone succeeded,but checkout failed


you cn inspect what was checked out with 'git status'

and retry the checkout with 'git checkout -f HEAD'


显示No such file or directory


[已解决]windows 上面git 克隆clone 的时候报错 warning:Clone succeeded,but checkout failed


最后找到了原因了,我在mac 上面上传的时候,目录名字中多了一个空格,就是这个空格的问题,例如上面的扬州,我在扬州后面还有一个空格,所以就报错了,显示No such file or directory



解决办法:

将包含了空格的目录重新修改,将空格删除了就可以了