问题描述
当我尝试使用git子模块并在运行Yocto Linux和git 2.0.1的Intel Edison上键入常规命令git submodule
时,我仅收到以下错误消息:
When i try using git submodules and type the usual command git submodule
on my Intel Edison running Yocto Linux and git 2.0.1, I just get the following error message:
$> git submodule init
git: 'submodule' is not a git command. See 'git --help'
系统版本为:
$> uname -r
3.10.17-poky-edison+
$> git --version
git version 2.0.1
$> configure_edison --version
159
在Google上找不到该错误的踪迹.
No tracks of that error on google.
是否有额外的软件包要安装?还是因为git 2.0.1?
Is there an extra package to install ? Or is it because of git 2.0.1 ?
在我的Ubuntu(git 1.9.1)上,这些命令可以正常工作.
On my Ubuntu (git 1.9.1) these commands work just fine.
推荐答案
是的,Edison上的Git可能是轻量级版本.正如msw在评论中提到的,最好的选择是从源.但是我相信下一个版本的Yocto软件包可能会附带一个新版本的git.
Yes, the Git on Edison might be a light weight version. As mentioned by msw in the comments, the best option is to build git from source. But I believe the next version of Yocto package might come with a new version of git.
这篇关于错误:"git:'submodule'不是git命令"在Intel Edison和git 2.0.1上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!