succeeded专题

DORIS - 克隆代码异常(Clone succeeded, but checkout failed)

描述 Clone succeeded, but checkout failed. You can inspect what was checked out with 'git status' and retry with 'git restore --source=HEAD :/' 原因 由于文件名太长,git clone 执行成功,git checkout 失败。 方案 A. 先执行

Git Clone succeeded, but checkout failed

Clone succeeded, but checkout failed: Filename too long 原因: 由于系统限制,路径太长,无法检出 解决方案: # git允许长路径,在已clone的仓库执行git config core.longpaths true# 再次检出git checkout -f HEAD 关于git config中添加--global或者--sy