Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9175591
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:56:28+00:00 2026-06-17T16:56:28+00:00

I have downloaded whole working tree with the following command: repo init -u https://android.googlesource.com/platform/manifest

  • 0

I have downloaded whole working tree with the following command:

repo init -u https://android.googlesource.com/platform/manifest
repo sync -j8

After syncing successfully, I want to switch working tree to android 2.3.7.
You see I didn’t specify branch with “-b” parameter when “repo init”.
So I guess all tag info should be downloaded and I can easily switch to android 2.3.7 with the following command:

repo forall -c git checkout android-2.3.7_r1

But it produces many errors like:

error: pathspec 'android-2.3.7_r1' did not match any file(s) known to git.

So how can I switch to android 2.3.7 without “repo init -b android-2.3.7_r1” and “repo sync” again?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T16:56:29+00:00Added an answer on June 17, 2026 at 4:56 pm

    You cannot solve this problem using repo forall.

    Lets assume for certainty that your current Android tree is clean – no local changes or commits, i.e. repo status shows nothing.

    To properly switch Android version, all you need to change is branch for your manifest repository. First determine the available branches with manifests for the different Android versions:

    cd $ANDROID_ROOT
    cd .repo/manifests
    git branch -av   # see all available branches on origin
    

    Select a version and

    cd $ANDROID_ROOT
    repo init -b <my_selected_android_version>
    

    Such selective repo init with -b (without -u) will only update manifest branch and will not otherwise touch your tree.

    Now, simply sync it:

    repo sync
    

    and some time later, your Android tree will switch to another version.

    Speed of this operation is mostly determined by how much default.xml manifest file differs between old and new Android versions – because if some git repository was added in new manifest, it will spend time cloning it. And if some repository was removed, if will actually blow it away.

    But, by and large, this method is still much faster than initializing brand new Android tree from scratch.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a Linux platform. I have downloaded Eclipse and also have
i have downloaded whole database from geonames.org and imported all countries into mysql. i
I would like to determine the number of bytes downloaded from the following working
I have started to working with phoneGap application for android. I followed the steps
I have this library http://www.codeproject.com/KB/cs/globalhook.aspx I've downloaded it and compiled it to DLL. At
In the app I'm working on, I have to make an HTTPS connection to
i have a problem using repo. i downloaded virtualbox and installed in on windows
I have a downloaded C++ utility program that dies due to an error while
I have a little python script that I am using to download a whole
have downloaded page by webbrowser and need to get mail address. But it is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.