Use git and repo to download the android source code

Source: Internet
Author: User

The first Google summer College Students' blog sharing competition-2010 andriod

The following operations are completed in ubuntu10.04lts:

  1. Install git

        Sudo Apt-Get install git-Core

  2. Install curl
         Sudo Apt-Get install git-Core curl

  3. Install repo to download the repo directly to the user root directory. Download repo through curl
        Curl http://Android.git.kernel.org/Repo>~/Repo
  4. Executable permissions for Repo
        Chmod+X ~/Repo
  5. Create a directory and enter it. Use repo to upload allSource codeDownload.
  • First initialize the local,

        ~/Repo init-U git://Android.git.kernel.org/Platform/Manifest. Git

    SeeRepo initialized in/androidThe initialization is complete.

  • Run
        Repo sync

    The download source starts automatically.Code.

You can download the source code through the above method, but the source code is relatively large. If the network speed is not fast, it is not recommended to do so. The downloaded file cannot be viewed during the download process. You must download all the downloaded files before you can see them. This is not satisfactory, and git supports resumable data transfer. You don't have to worry about it if it is interrupted.

For more information, see:

Http://source.android.com/source/git-repo.html

Http://android.git.kernel.org/

 


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.