获取管理Android源代码中各个git仓库的xml配置文件

1、获取管理Android源代码中各个git仓库的xml配置文件,这些配置文件是以git仓库 的方式进行管理的:

https://android.googlesource.com/platform/manifest 

git clone https://android.googlesource.com/platform/manifest

2、在clone的文件夹manifest中:

查看xml配置文件git仓库中的branch信息:

$ git branch

* master

$ git branch -a

* master

  remotes/origin/HEAD -> origin/master

  remotes/origin/android-1.6_r1

  remotes/origin/android-1.6_r1.1

  remotes/origin/android-1.6_r1.2

  remotes/origin/android-1.6_r1.3

  remotes/origin/android-1.6_r1.4

  remotes/origin/android-1.6_r1.5

  remotes/origin/android-1.6_r2

  remotes/origin/android-2.0.1_r1

  remotes/origin/android-2.0_r1

  remotes/origin/android-2.1_r1

  remotes/origin/android-2.1_r2

  remotes/origin/android-2.1_r2.1p

  remotes/origin/android-2.1_r2.1p2

  remotes/origin/android-2.1_r2.1s

  remotes/origin/android-2.2.1_r1

  remotes/origin/android-2.2.1_r2

  remotes/origin/android-2.2.2_r1

  remotes/origin/android-2.2.3_r1

  remotes/origin/android-2.2.3_r2

  remotes/origin/android-2.2.3_r2.1

  remotes/origin/android-2.2_r1

  remotes/origin/android-2.2_r1.1

  remotes/origin/android-2.2_r1.2

  remotes/origin/android-2.2_r1.3

  remotes/origin/android-2.3.1_r1

  remotes/origin/android-2.3.2_r1

  remotes/origin/android-2.3.3_r1

  remotes/origin/android-2.3.3_r1.1

  remotes/origin/android-2.3.4_r0.9

  remotes/origin/android-2.3.4_r1

  remotes/origin/android-2.3.5_r1

  remotes/origin/android-2.3.6_r0.9

  remotes/origin/android-2.3.6_r1

  remotes/origin/android-2.3.7_r1

  remotes/origin/android-2.3_r1

  remotes/origin/android-4.0.1_r1

  remotes/origin/android-4.0.1_r1.1

  remotes/origin/android-4.0.1_r1.2

  remotes/origin/android-4.0.2_r1

  remotes/origin/android-4.0.3_r1

  remotes/origin/android-4.0.3_r1.1

  remotes/origin/android-4.0.4_r1

  remotes/origin/android-4.0.4_r1.1

  remotes/origin/android-4.0.4_r1.2

  remotes/origin/android-cts-2.2_r8

  remotes/origin/android-cts-2.3_r10

  remotes/origin/android-cts-2.3_r11

  remotes/origin/android-cts-2.3_r12

  remotes/origin/android-cts-4.0.3_r1

  remotes/origin/android-cts-4.0.3_r2

  remotes/origin/android-cts-4.0_r1

  remotes/origin/android-cts-verifier-4.0.3_r1

  remotes/origin/android-cts-verifier-4.0_r1

  remotes/origin/android-sdk-4.0.3-tools_r1

  remotes/origin/android-sdk-4.0.3_r1

  remotes/origin/android-sdk-adt_r16.0.1

  remotes/origin/froyo

  remotes/origin/gingerbread

  remotes/origin/gingerbread-release

  remotes/origin/ics-mr0

  remotes/origin/ics-mr1

  remotes/origin/master

  remotes/origin/tradefed

3、通过repo init下载Android源代码时通过-b参数指定上面的branch信息即可,例如:

$ repo init -u https://android.googlesource.com/platform/manifest -b android-2.3.7_r1

你可能感兴趣的:(获取管理Android源代码中各个git仓库的xml配置文件)