how to checkout a specified branch?


Last Updated:

  1. zmjdx

    zmjdx New Member This Topic's Starter

    Joined:
    Sep 25, 2010
    Messages:
    1
    Likes Received:
    0
    Hi,I have download the android source code using repo:
    mkdir mydroid
    cd mydroid
    repo init -u git://android.git.kernel.org/platform/manifest.git
    repo sync

    I am sure I have updated to the latest branch(froyo). But I don't want the latest branch.I need the 'eclair' branch. How can I fetch this branch based on the downloaded files?

    I know that using "repo init -u git://android.git.kernel.org/platform/manifest.git -b eclair" can achieve this,but it will download files from server's repo again:eek:.

    Thanks.
     

    Advertisement
  2. karel1980

    karel1980 New Member

    Joined:
    Nov 5, 2010
    Messages:
    2
    Likes Received:
    0
    I'm having the exact same problem, this is what I do:
    repo forall -c "git checkout eclair"

    After that, when you do 'repo branches' it will list a number of
    projects which do not have an 'eclair' branch.

    Actually there are multiple eclair branches - it's not clear to me at this point
    which is the right one to start from

    remotes/korg/eclair
    remotes/korg/eclair-passion-release
    remotes/korg/eclair-release
    remotes/korg/eclair-sholes-release
    remotes/korg/eclair-sholes-release2

    Anyway, after that, go to the project where you want to start hacking.
    If you type gitk.
    If you by any chance were planning on working an IME, let me know ;-)
     
  3. karel1980

    karel1980 New Member

    Joined:
    Nov 5, 2010
    Messages:
    2
    Likes Received:
    0
    Ignore my previous answer. You should use these commands:

    repo init -u git://android.git.kernel.org/platform/manifest.git -b eclair
    repo sync

    Don't forget to create a topic branch before you start making changes.
    repo start mybranch [proj1 proj2 ... projN]

    See here for more information:
    Using Repo and Git | Android Open Source
     

Share This Page

Loading...