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"