repo命令下载安卓代码

MocorDroid code download command is as follows. <branch> should be replaced with specific branch you wants. Remove the angle brackets when replacing.

Download branches are shown in Table1.

$ repo init -u gitosis@sprdroid.git.spreadtrum.com.cn:android/platform/manifest.git -b <branch>
Downloading code from Beijing git mirror by this command. See descriptions below to download from other git mirrors.

Use following commands to switch any branch in the current workspace.

$ repo forall -c 'git clean -df && git reset --hard HEAD' #clean your workspace
$ repo init -b <branch> #switch branch
$ repo sync

Attentions:

Adding group attribute in the manifest file of sprdroid4.3_3.4 branch.

The project will not be automatically downloaded by repo which is placed in the
group "notdefault".

To download all projects in manifest file, repo init with the -g all option on the command line.

To download projects belong to a specified group, for example flo group,repo init with the -g flo option on the command line.

repo init with the -g <group name> option to switch according code.

Attention: The -g option only takes effect in latest version of spreadtrum repo tool.

$ repo sync

Attention:
  IT is faster to download only the branch that specified in manifest file, repo sync with -d -c -q -j8 options on the command line. 

Attention: If the format of fetch line like fetch=".." , no necessary to modify the manifest file.

<branch> should be replaced with specific branch you wants. Remove the angle brackets when replacing.

[--repo-url= ...] is optional. Remove the square brackets when using this option.

From Beijing to download code:

$ repo init -u gitosis@sprdroid.git.spreadtrum.com.cn:android/platform/manifest.git -b <branch>

$ repo sync -d -c -q

From Shanghai Mirror to download code:

$ repo init -u gitadmin@gitsrv01.spreadtrum.com:android/platform/manifest.git -b <branch>  [--repo-url=gitadmin@gitsrv01.spreadtrum.com:tools/newrepo.git]

$ repo sync -d -c -q
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值