如何仅下载AOSP源代码的工作目录而没有整个回购历史记录? [英] How to download only a working directory of the AOSP source code without the entire repo history?
本文介绍了如何仅下载AOSP源代码的工作目录而没有整个回购历史记录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
- 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屋!
查看全文