The first Google summer College Students' blog sharing competition-2010 andriod
The following operations are completed in ubuntu10.04lts:
-
- Install git
Sudo Apt-Get install git-Core
-
Install curl
Sudo Apt-Get install git-Core curl
- Install repo to download the repo directly to the user root directory. Download repo through curl
Curl http://Android.git.kernel.org/Repo>~/Repo
-
- Executable permissions for Repo
Chmod+X ~/Repo
- Create a directory and enter it. Use repo to upload allSource codeDownload.
-
- First initialize the local,
~/Repo init-U git://Android.git.kernel.org/Platform/Manifest. Git
SeeRepo initialized in/androidThe initialization is complete.
- Run
Repo sync
The download source starts automatically.Code.
You can download the source code through the above method, but the source code is relatively large. If the network speed is not fast, it is not recommended to do so. The downloaded file cannot be viewed during the download process. You must download all the downloaded files before you can see them. This is not satisfactory, and git supports resumable data transfer. You don't have to worry about it if it is interrupted.
For more information, see:
Http://source.android.com/source/git-repo.html
Http://android.git.kernel.org/