1. $sudo apt-get install git-core curl
2. mkdir ~/bin
PATH=~/bin:$PATH
3. curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
4. mkdir WORKING_DIRECTORY
cd WORKING_DIRECTORY
5. repo init -u https://android.googlesource.com/platform/manifest
repo init -u https://android.googlesource.com/platform/manifest -b android-4.4_r1
提示有输入邮箱号和密码等操作,但未出现为何?这将导致后面帐号错误!
原来需要手动设置:
[html] view plaincopy
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
6. repo sync