如何仅下载AOSP源代码的工作目录而没有整个回购历史记录? [英] How to download only a working directory of the AOSP source code without the entire repo history?

查看:214
本文介绍了如何仅下载AOSP源代码的工作目录而没有整个回购历史记录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最新AOSP源代码的大小相当大(对于.repo目录大约30-35 Gb,对于工作目录大约为15 Gb左右)。有没有办法只下载最新版本的源代码(官方棉花糖发布)的快照,没有整个回购历史记录?这可以为我节省很多带宽和存储空间。

您可以指定 - depth 1 git clone 命令。它只会获得最新的快照。


The size of the latest AOSP source code is rather large (around 30-35 Gb for the .repo directory and another 15 Gb or so for the working directory). Is there a way to download only a snapshot of the latest version of the source code (official marshmallow release) without the entire repo history? That would save me a lot in bandwidth and storage.

解决方案

You can specify --depth 1 to git clone command. It will only get the latest snapshot.

这篇关于如何仅下载AOSP源代码的工作目录而没有整个回购历史记录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆