Download Android source code using git

Source: Internet
Author: User
Tags using git

After three consecutive days, the computer was finally downloaded. Let's talk about my process.

1. Create a new folder to put the source code and prepare enough space. After downloading the folder, add a little more than 10 Gb.

2. Download git

3. Go to http://android.git.kernel.org/

4. (Open http://android.git.kernel.org/check.) If you want to download the package at one time, I will do this by setting the paths (under "project) copy all of them and put them in one text (I copied the description, owner, and last change, and they can all be put in the text. Then we should be able to delete them using regular expressions, but I didn't know how to write this regular expression.) Then, add git clone git: // android.git.kernel.org/to the front of each line, and the following figure shows how to write this regular expression.

Git clone git: // android.git.kernel.org/device/common.git

Git clone git: // android.git.kernel.org/device/google/accessory/arduino.git

Git clone git: // android.git.kernel.org/device/google/accessory/demokit.git

Git clone git: // android.git.kernel.org/device/htc/common.gitgit clone

.....

.....

5. open git, configure it first (see Figure 6), run the command CD to enter the folder directory for storing Android, copy all the paths in the text, paste them into git, and then download the file automatically, wait...

6. I encountered the following warning during the download process:

Warning: Your console font probably doesn't support Unicode. If you experience strange characters in the output, consider switching to a TrueType font such as lucida console!

It should be a wrong character, so modify the character before pasting. Use this command: $ git config -- global core. autocrlf true, and the download will be successful.

7. After I download the source code:

Size: 10.2 GB (11,041,115,838 bytes)

Occupied Space: 11.4 GB (12,247,085,056 bytes)

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.