Created
January 10, 2015 08:22
-
-
Save yenliangl/4d42e4a18369ae5b71a4 to your computer and use it in GitHub Desktop.
How to use repo to smart switch different branch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Use repo to intitalize different branches | |
$ mkdir /repos/aosp-1.6_r1 | |
$ cd /repos/aosp-1.6_r1 | |
$ repo init -b android-1.6_r1 -u https://android.googlesource.com/platform/manifest --reference=/repos/aosp-main | |
$ repo sync | |
Switch to another branch | |
$ mkdir /repos/aosp-1.6_r2 | |
$ cd /repos/aosp-1.6_r2 | |
$ repo init -b android-1.6_r2 -u https://android.googlesource.com/platform/manifest --reference=/repos/aosp-main | |
$ repo sync |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment