Skip to content

Instantly share code, notes, and snippets.

@yenliangl
Created January 10, 2015 08:22
Show Gist options
  • Save yenliangl/4d42e4a18369ae5b71a4 to your computer and use it in GitHub Desktop.
Save yenliangl/4d42e4a18369ae5b71a4 to your computer and use it in GitHub Desktop.
How to use repo to smart switch different branch
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