3

我一直在尝试下载金鱼内核源代码,但没有运气。

在点击以下命令后,我最终得到了 1GB 大小的源代码:

git clone https://android.googlesource.com/kernel/common

但是我们按下了以下命令,

git checkout -t origin/android-goldfish-2.6.29 -b goldfish

它提示我:

Fatal error: git repository not found.

虽然,

git branch -r

也给了我同样的错误。

4

2 回答 2

2

好吧,如果您只需要源代码,而不需要本地 git repo,那么只需拍摄您需要的快照,即这个
同样,您可以下载任何 git 树快照,只需注意https://android.googlesource.com上的标签链接

于 2011-03-03T09:22:50.890 回答
2
git clone git://android.git.kernel.org/kernel/common.git

接着

cd common  ==============>>> this is the step u missed.

git branch -a 

git checkout -t  remotes/origin/android-2.6.38 -b mygoldfish2_6_38 

git branch -r 

git checkout -t  origin/android-2.6.35 -b mygoldfish_2_6_35

然后下面的命令给出:

git branch
  android-2.6.36
  mygoldfish2_6_38
* mygoldfish_2_6_35
于 2011-03-13T05:21:10.230 回答