- Download repo address: Http://android.git.kernel.org/repo, you can use wget
Http://android.git.kernel.org/repo or curl
Http://android.git.kernel.org/repo
> ~ /Bin/repo to download Repo, chmod A + x ~ /Bin/Repo
-
- When you use repo sync to capture the android source code, some errors often occur, causing repo sync
Interrupt. Start manually each time. You can use the following command to automatically repeat: $? = 1; while [$? -Ne 0]; do Repo
Sync; done
-
- Repo help [command]: displays Detailed Help information of command.
-
- Repo init-u URL. After repository is installed in the current directory, a directory ". Repo"-u will be created in the current directory.
The parameter specifies a URL from which the manifest file of repository is obtained. Repo init-u
Git: // android.git.kernel.org/platform/manifest.git
You can use the-M parameter to select a specific manifest in repository.
File. If not specified, it is represented as the default namifest file (default. XML) repo init-u
Git: // android.git.kernel.org/platform/manifest.git-M dalvik-plus.xml
You can use the-B parameter to specify a manifest branch.
Repo init-u
Git: // android.git.kernel.org/platform/manifest.git-B release-1.0
You can use the command: repo help init to obtain other repo init usage.
4. Repo sync [project-list]
Download the latest local engineerCompositionFile. The update is successful.CodeIs the same.
You can specify the project to be updated. If no parameter is specified, all projects are synchronized.
If you run repo sync for the first time, this command is equivalent to git clone, and the Repository
All content in is copied to the local device. If you do not run repo sync for the first time, it is equivalent to git remote update; git rebase
ORIGIN/branch. Repo sync updates the files under. repo. If a conflict occurs during the merge process, you need to manually run
Git rebase -- continue
5. Repo update [project-list]
Upload the modified Code. If your local code is modified, run repo sync.
You will be prompted to upload the modified Code. All the modified Code branches will be uploaded to Gerrit (web-based code review system), Gerrit
The uploaded code is converted to one by one changes, so that people can review the modified Code.
6. Repo diff [project-list]
Displays the differences between the submitted code and the current working directory code.
7. Repo download target Revision
Download a specific version to a local device, for example, Repo download pltform/frameworks/base 1241
Download the Code with the modified version 1241
8. Repo start newbranchname
Create a new branch. "." Indicates the branch of the current job.
9. Repo prune [project list]
Delete a merge Project
10. Repo foreach [project-lists]-C command
Run the command for each project
11. Repo status
Displays the project status