克隆混帐回购协议 [英] Cloning git repo
本文介绍了克隆混帐回购协议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
今天,我克隆一个Git回购成功(我希望),但我不能看到克隆的目录中的所有源文件。具体地说我克隆了谷歌用下面的命令 MSM-内核
回购:
git的克隆https://android.googlesource.com/kernel/msm.git kernel_msm
解决方案
本回购的主分支是空的。你需要检查出正确的分支:
$ git的分支-a
*主
遥控器/产地/ HEAD - >产地/主
遥控器/产地/ Android的MSM-2.6.35
遥控器/产地/主
$ git的结帐Android的MSM-2.6.35
检查出的文件:100%(三万三千八百六十六分之三万三千八百六十六)完成。
科Android平台的MSM-2.6.35设置跟踪远程分支Android的MSM-2.6.35从原产地。
切换到新的分支Android的MSM-2.6.35
$ LS
复印MAINTAINERS拱固件IPC净声音
学分的Makefile块FS内核样品工具
README文件包括加密脚本的lib USR
kbuild的报告 - BUGS驱动程序初始化毫米的virt安全
$
Today I cloned a Git repo successfully (I hope), however I can not see any source files in the cloned directory. To be specific I cloned the msm-kernel
repo from Google with the command:
git clone https://android.googlesource.com/kernel/msm.git kernel_msm
解决方案
The master branch of this repo is empty. You need to check out the proper branch:
$ git branch -a
* master
remotes/origin/HEAD -> origin/master
remotes/origin/android-msm-2.6.35
remotes/origin/master
$ git checkout android-msm-2.6.35
Checking out files: 100% (33866/33866), done.
Branch android-msm-2.6.35 set up to track remote branch android-msm-2.6.35 from origin.
Switched to a new branch 'android-msm-2.6.35'
$ ls
COPYING MAINTAINERS arch firmware ipc net sound
CREDITS Makefile block fs kernel samples tools
Documentation README crypto include lib scripts usr
Kbuild REPORTING-BUGS drivers init mm security virt
$
这篇关于克隆混帐回购协议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文