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