最终结果共享地址:http://pan.baidu.com/s/1CE8aq
gaojs@ubuntu:~/bin$ mkdir kernel-common
gaojs@ubuntu:~/bin$ cd kernel-common/
gaojs@ubuntu:~/bin/kernel-common$ git clone https://android.googlesource.com/kernel/common.git
Cloning into 'common'...
remote: Sending approximately 716.83 MiB ...
remote: Counting objects: 74655, done
remote: Finding sources: 100% (4937/4937)
remote: Getting sizes: 100% (1387/1387)
remote: Compressing objects: 99% (35690/35691)
Receiving objects: 100% (3126423/3126423), 716.21 MiB | 895 KiB/s, done.
remote: Total 3126423 (delta 2606613), reused 3125099 (delta 2606515)
Resolving deltas: 100% (2607016/2607016), done.
gaojs@ubuntu:~/bin/kernel-common$ du -h --max-depth=1
800M ./common
800M .
gaojs@ubuntu:~/bin/kernel-common$ cd common/
gaojs@ubuntu:~/bin/kernel-common/common$ du -h --max-depth=1
800M ./.git
800M .
gaojs@ubuntu:~/bin/kernel-common/common$ git branch -a
* master
remotes/origin/HEAD -> origin/master
remotes/origin/android-2.6.39
remotes/origin/android-3.0
remotes/origin/android-3.10
remotes/origin/android-3.10-adf
remotes/origin/android-3.3
remotes/origin/android-3.4
remotes/origin/android-3.4-compat
remotes/origin/bcmdhd-3.10
remotes/origin/coupled-cpuidle
remotes/origin/experimental/android-3.10
remotes/origin/experimental/android-3.10-rc5
remotes/origin/experimental/android-3.8
remotes/origin/experimental/android-3.9
remotes/origin/experimental/android-3.9-rc2
remotes/origin/experimental/android-3.9-rc7
remotes/origin/linux-bcm43xx-2.6.39
remotes/origin/master
gaojs@ubuntu:~/bin/kernel-common/common$ git checkout remotes/origin/android-3.10
Checking out files: 100% (43119/43119), done.
Note: checking out 'remotes/origin/android-3.10'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b new_branch_name
HEAD is now at cacc36f... Merge branch 'android-3.10-adf' into android-3.10
gaojs@ubuntu:~/bin/kernel-common/common$ du -h --max-depth=1
2.7M ./mm
126M ./arch
204K ./samples
20K ./android
2.5M ./crypto
804M ./.git
2.2M ./security
26M ./sound
23M ./net
40K ./usr
35M ./fs
5.8M ./kernel
240K ./ipc
216K ./virt
2.1M ./lib
28M ./include
284M ./drivers
5.2M ./tools
912K ./block
2.7M ./scripts
24M ./Documentation
180K ./init
6.0M ./firmware
1.4G .