Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cloning git repo

Tags:

git

android

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
like image 450
Adarsha HD Avatar asked Dec 19 '11 04:12

Adarsha HD


1 Answers

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
$ 
like image 109
David K. Hess Avatar answered Sep 30 '22 08:09

David K. Hess