How to switch android version in local repo?

后端 未结 2 1860
伪装坚强ぢ
伪装坚强ぢ 2021-02-01 21:57

I have downloaded whole working tree with the following command:

repo init -u https://android.googlesource.com/platform/manifest
repo sync -j8

2条回答
  •  一向
    一向 (楼主)
    2021-02-01 22:25

    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

提交回复
热议问题