git clone代码报错:fatal: unable to checkout working tree

git clone代码报错:fatal: unable to checkout working tree

  • 错误信息
  • 解决办法1
  • 解决办法2

错误信息

Receiving objects: 100% (15586/15586), 175.20 MiB | 13.49 MiB/s, done.
Resolving deltas: 100% (3781/3781), done.
error: invalid path 'addons/we7_wmall/thirplatform /keruyun/Keruyun.php'
fatal: 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 :/'

错误原因: 文件名太长,无法签出工作树警告:克隆成功,但签出失败。

解决办法1

配置git
通过命令设置:git config --system core.longpaths true
在这里插入图片描述执行命令

PS D:\wwwroot\www.ch.com> git restore --

你可能感兴趣的:(Git,git,github)