Posts AOSP 切换分支
Post
Cancel

AOSP 切换分支

注:事先切换到源码目录下

列出所有可切换的分支

1
2
$ cd .repo/manifests
$ git branch -a | cut -d / -f 3 [|grep android]

切换到对应的分支

1
$ repo init -b branch_name

同步分支

1
2
$ repo sync
$ repo start branch_name --all

查看当前分支

1
$ repo branches
This post is licensed under CC BY 4.0 by the author.