建立ONIE,致命:模棱两可的争论' head'未在工作树中的修订版本或路径

时间:2017-11-16 09:15:39

标签: git

我尝试构建ONIE安装映像。我cd到path / onie-master / build-config。

首先,我输入make后,显示:

fatal: Not a git repository (or any of the parent directories): .git

我在路径/ onie-master / build-config下git init。它仍然发生了。

这次我在路径/ onie-master下我git init,它显示:

fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree

问题是什么?

1 个答案:

答案 0 :(得分:0)

您可以按git clone克隆存储库,无需git init

使用此:git clone https://github.com/opencomputeproject/onie.git

然后按照this

中的构建说明进行操作
相关问题