repo使用

1. 获取android1.5版本的源代码

 

    repo init -u git://android.git.kernel.org/platform/manifest.git 2>init_info.txt

 

    view the init_info.txt, choose one branch or tag

 

    repo init -b android-1.5r4

 

    repo sync

 

 

2. ".repo"文件夹说明

 

    repo目录          repo工具集的git clone

 

    manifest目录      manifest的git clone

 

    manifest.git目录  manifest的git仓库,在manifest目录中的git目录只是此目录的软链接

 

 

3. 查看manifest的tag

 

    cd manifest

    git tag

 

 

4. 查看manifest的远端branch

 

    cd manifest

    git branch -r

 

 

你可能感兴趣的:(android,git,工具,branch)