问题描述:
unable to checkout working tree warning: Clone succeeded, but checkout failed. You can inspect what was checked out with 'git status' and retry with 'git restore --source=HEAD :/'
无法签出工作树警告:克隆成功,但签出失败。您可以使用“git status”检查签出的内容,然后使用“git restore–source=HEAD:/”重试
通俗来说就是文件名太长,无法签出工作树警告:克隆成功,但签出失败。
解决
运行cmd:
git config --system core.longpaths true
如果出现上图的错误:
error: could not lock config file C:/Program Files/Git/etc/gitconfig: Permission denied
当前Windows登录用户没有 该文件的权限,需要添加权限