解决git clone --recursive部分失败后继续检出代码

在使用如下命令检出Vulkan的时候,发生失败,Vulkan的代码已经成功检出,但是子模块没有完成

$ git clone --recursive https://github.com/SaschaWillems/Vulkan.git

提示的出错信息如下:

warning: 克隆成功,但是检出失败。
您可以通过 'git status' 检查哪些已被检出,然后使用命令
'git checkout -f HEAD' 重试

可以使用如下命令继续检出子模块:

$ git submodule update --init --recursive --progress

发布者

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注