Android source code Download "Gerrit Download source code"

Source: Internet
Author: User
Tags git clone

Repo Init-u ssh://[email protected]: 29419/manifest - m K86a.xml

Use the-m parameter to specify that the K86A.MXL file is used specifically

Step 1. Curl Http://gerrit.y/repo > Repo

Install repo to update the Android source code. Download the repo script, repo is an android-to-git package that simplifies some git operations;

Step 2. Move the repo file to the specified directory what is the difference between/usr/bin/repo (and ~/bin?). )

Step 3. and execute the instructions in the/usr/bin/repo directory: sudo chmod a+x repo

Set the repo script to execute permissions.

Step 4. Execute repo init-u ssh://user name @gerrit.y:29419/manifest-b yunos/mx1/cocolife/v9 (default.xml file)

Repo initialization (clone code base, first manifest file), where-u refers to a URL address (that is, the manifest git library),-B refers to the branch name (specifying a manifest branch); The file is both a branch name: origin/ YUNOS/MX1/COCOLIFE/V9 all the code of the manifest; You can use the-m parameter to select a particular manifest file in repository, if not specified, as the default manifest file, That's default.xml.

The results will be created in the current directory. Repo's hidden directory, if you need to copy a branch instead of the main branch of the code, you need to use the-b parameter to customize the branch name, such as the above yunos/cocolife/mx1-v9.

Step 5. Perform repo sync

If you are running Repo sync for the first time, this command is equivalent to Git clone, which copies everything in the repository to local. If you are not running Repo sync for the first time, it is equivalent to git remote update; git rebase origin/branch;repo sync will update the. repo file below. If there is a conflict during the merge process, this requires the Git rebase--continue to run manually.

Android source code Download "Gerrit Download source code"

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.