Switch from AOSP master to froyo

*爱你&永不变心* 提交于 2019-12-03 03:22:47

Since you downloaded everything with repo, you can easily use repo to switch between branches without downloading everything again:

repo init -b froyo; repo sync

This will download only the files you need to switch branches, just like moving between branches with git.

keyboardsurfer provides the commands to checkout the the froyo branch of every project you currently have.

However projects that have been added or removed between revisions will not be added or removed to/from your working tree correctly.

Thus you should run this first and then run keyboardsurfer's commands:

cd .repo/manifests
git checkout -b froyo korg/froyo
cd ../..
repo sync

cd into your repo directory, then execute repo forall -c git checkout korg/froyo for checking out the froyo branch for all subrepos and repo forall external/qemu sdk -c git checkout korg/tools_r6for checking out the correct android tools for froyo.

In this way repo works in a similar way as git submodule foreach. You can also go back to the head revisions via git forall -c git checkout HEAD or a simple repo sync

if the branch you are in and the branch you will switch to has the same manifest.xml file, then you can use the following commands to do that.

repo forall -c git fetch aosp --tags 

repo forall -c git checkout -b john5.1.1_r14_api22 android-5.1.1_r14

also see details in http://johnliao52.github.io/2016/03/27/git-repo-skills.html

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!