报错信息:
Clone succeeded, but checkout failed. You can inspect what was checked out with 'git status' and retry with 'git restore --source=HEAD :/'
简单来说就是:由于文件名太长,git clone克隆成功,但签出失败
解决方法:
打开cmd,运行 git config --system core.longpaths true
补充:
如果出现:could not lock config file C:/Program Files/Git/etc/gitconfig: Permission denied
需要为该文件添加权限