Discussion:
How can I switch branch after I do 'repo init'
m***@gmail.com
2012-12-21 19:38:31 UTC
Permalink
I have created my repository like this:

repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1

But how can I

- find out what other branches are there for my repo
- switch to another branch for my repo

Thank you.
--
To unsubscribe, email repo-discuss+***@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
Bjorn Andersson
2012-12-21 20:08:27 UTC
Permalink
Hi Michael

If you go into .repo/manifests you can see all manifest branches with "git
branch -a".

To change branch for your workspace, simply run "repo init -b <branch>" and
repo sync again.

Regards,
Bjorn
Post by m***@gmail.com
repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1
But how can I
- find out what other branches are there for my repo
- switch to another branch for my repo
Thank you.
--
To unsubscribe, email repo-discuss+***@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
Gavin Fang
2012-12-24 15:26:45 UTC
Permalink
Post by m***@gmail.com
repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1
But how can I
- find out what other branches are there for my repo
As Bjorn says: goto .repo/manifests and check with command "git branch -a"
- switch to another branch for my repo
For a clean work directory , I usually
1 repo init -b <branchname>
2 remove all the files except directory .repo
3 repo sync
Post by m***@gmail.com
Thank you.
--
To unsubscribe, email repo-discuss+***@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
Loading...