查看可切换的分支
cd .repo/manifests
git branch -a | cut -d / -f 3
以 gingerbread-release 分支为例
repo init -b gingerbread-release
repo sync (not needed if your local copy is up to date)
repo start gingerbread-release --all
查看当前的分支
repo branches
cd .repo/manifests
git branch -a | cut -d / -f 3
以 gingerbread-release 分支为例
repo init -b gingerbread-release
repo sync (not needed if your local copy is up to date)
repo start gingerbread-release --all
查看当前的分支
repo branches
切换Android源代码分支指南
本文介绍如何在Android源代码中切换不同的分支,包括使用repo工具进行初始化、同步及启动指定分支的方法,并提供了查看当前所在分支的命令。
1万+

被折叠的 条评论
为什么被折叠?



