Repo On Ubuntu

Source: Internet
Author: User
Tags git commands

Android is composed of multiple git projects, such as kernel, Dalvik, bionic, prebuilt, and build. It is very troublesome if we use the Ubuntu git commands to obtain them one by one, therefore, the android Project Team compiled a Python script named repo to manage these project repositories in a unified manner, making it easier to get the project.

 

(1) install the curl tool:

 

Sudo apt-Get install curl

 

(2) download the repo script:

 

Curl http://android.git.kernel.org/repo> ~ /Bin/Repo

 

(3) repo script authorization:

 

Chmod A + x ~ /Bin/Repo

 

(4) download the trunk source code:

 

Repo init-u git: // android.git.kernel.org/platform/manifest.git

 

(5) download branch source code:

 

Repo init-u git: // android.git.kernel.org/platform/manifest.git-B cupcake

 

(6) view repo help:

 

Repo or repo help

 

(7) synchronization code:

 

Repo sync

 

(8) Different comparison files:

 

Repo diff file name

 

(9) display the File status:

 

Repo status

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.