Download

repo init -u git://mirrors.ustc.edu.cn/aosp/platform/manifest -b android-12.0.0_r27 —depth=1 —platform=auto
repo sync -c -j4 —fail-fast
repo init时加上—depth=1 参数,下载的代码每个git仓只包含一个commit信息.
repo sync时加上-c参数,只下载当前分支相关的代码.

https://blog.csdn.net/mvp_Dawn/article/details/107624203