1遣铝、下載配置git,curl
git config --global user.name "Your Name"
git config --global user.email "you@example.com"
2爬橡、使用curl下載repo工具
curl https://storage-googleapis.lug.ustc.edu.cn/git-repo-downloads/repo > ~/bin/repo //bin文件夾需要先創(chuàng)建
打開repo修改 REPO_URL = 'https://gerrit-googlesource.lug.ustc.edu.cn/git-repo'
sudo chmod a+x ~/bin/repo //給repo命令賦予可執(zhí)行權(quán)限
3冻河、初始化Android倉(cāng)庫(kù)
repo init -u git://mirrors.ustc.edu.cn/aosp/platform/manifest -b android-8.0.0_r9 //mirrors.ustc.edu.cn中國(guó)科技大學(xué)的
4箍邮、同步代碼
repo sync -j8 -c //-c只同步當(dāng)前分支