From: http://yinger-fei.iteye.com/blog/1300144
1. Install git
Sudo apt-Get install Git-core
2. Install curl
Sudo apt-Get install Git-core curl
3. Install repo and download repo through curl
Make sure you have a bin/directory in your home directory, and that it is stored in your path:
$ mkdir ~/bin$ PATH=~/bin:$PATH
Note the following path, used to always use the old, http://android.git.kernel.org/repo, the generated repo file is wrong.
$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
4. Modify the execution permission
Chmod A + x ~ /Bin/Repo
5. Create a directory and enter it.
$ Mkdir working_directory $ CD working_directory // source code for storing the project
6. Run repo init.
Note: If a repo error cannot be found, you can list the entire repo path. For example ~ /Bin/repo init .....
$ repo init -u https://android.googlesource.com/platform/manifest
7. Execute Repo
Sync
$ Repo sync // download source code from the server
Reference Path: http://source.android.com/source/downloading.html thanks to open source ah, to solve the big problem. Hey