Installing repo
Repo is a tool that makes it easier to work with Git in the context of Android.
$ mkdir ~/bin
$ PATH=~/bin:$PATH
$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
As you can see , it just get repository related script form https://dl-ssl.google.com/dl/googlesource/git-repo/repo and make excutable
Initializing a Repo client
$ mkdir ~/android
$ cd ~/android
then initialize repository.
$ repo init -u https://android.googlesource.com/platform/manifest
It shows below error at first time
-----------------------------------------------------------------------
*** Please tell me who you are.
Run
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: empty ident <dokyun@redbomb-server.(none)> not allowed-----------------------------------------------------------------------
as you can see on the error message, type your email and name
$ git config --global user.email "dokyun.beon@gmail.com"
$ git config --global user.name "dokyun beon"
then excute again
$ repo init -u https://android.googlesource.com/platform/manifest
$ repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1
$ repo sync
as you can see, down load is done
-----------------------------------------------------------------------
dokyun@android$ ls
Makefile bionic build dalvik device external hardware ndk prebuilt system
abi bootable cts development docs frameworks libcore packages sdkdokyun@android$
-----------------------------------------------------------------------
refer to official home more detail.
http://source.android.com/source/downloading.html
댓글 없음:
댓글 쓰기