描述 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 config --system core.longpaths true B. 再克隆: git clone https://github.com/doris.git