Android repo branch/Partial-clone/--depth=1/--groups

repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1

repo init -u https://android.googlesource.com/platform/manifest -b  android-9.0.0_r45      (   PQ3B.190705.003  base  version for Android9/RK3399/Firefly )  

 

At the time of writing,

repo init --depth=1  -u https://android.googlesource.com/platform/manifest -b android-5.1.0_r5

creates 33GB worth of files.

Adding --depth=1 reduces this to 21GB.

Adding --groups=all,-notdefault,-device,-darwin,-x86,-mips,-exynos5 to exclude devices and components you're not interested in reduces this to 19GB.

For storage only, you could remove the checked-out files for each .git repository inside .repo/ to save even more space, but I'm not sure how to script this. If you did do this, repo sync would check out the "missing" files when needed.

For reference, my complete command line was
repo init -u https://android.googlesource.com/platform/manifest -b android-5.1.0_r5 --depth=1 --groups=all,-notdefault,-device,-darwin,-x86,-mips,-exynos5,mako

 

 

Code Name refer to 

https://source.android.com/setup/start/build-numbers

https://blog.csdn.net/hushui/article/details/83305863 

##  Partial-clone/git2.19 

If using Git version 2.19 or greater, you can specify --partial-clone when performing repo init which will make use of Git's partial clone capability, which only downloads Git objects when needed instead of downloading everything. Because using partial clones means that many operations need to communicate with the server, this is recommended for developers who are using a network with low latency:

repo init -u https://android.googlesource.com/platform/manifest -b master --partial-clone --clone-filter=blob:limit=10M

 

If using Git version 2.19 or greater, you can specify --partial-clone when performing repo init which will make use of Git's partial clone capability, which only downloads Git objects when needed instead of downloading everything. Because using partial clones means that many operations need to communicate with the server, this is recommended for developers who are using a network with low latency:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值