我已經下載了整個工作樹下面的命令:如何在本地回購中切換android版本?
repo init -u https://android.googlesource.com/platform/manifest
repo sync -j8
同步成功後,我想切換工作樹到Android 2.3.7。 您看到「repo init」時我沒有指定帶「-b」參數的分支。 所以我想所有的標籤信息應下載,我可以方便地切換到Android 2.3.7使用以下命令:
repo forall -c git checkout android-2.3.7_r1
但它會產生許多錯誤,如:
error: pathspec 'android-2.3.7_r1' did not match any file(s) known to git.
那麼怎麼可以切換到Android 2.3.7沒有「repo init -b android-2.3.7_r1」和「回購同步」再次?
讀您的文章後,我意識到我誤解了git/repo的一些關鍵方面。非常非常感謝你! –
它似乎回購已經改變,是'.repo/manifest'現在'.repo/manifests'? – nmr