win7安装git下载指定android版本源码

 网上教程很多,但都是介绍把整个android下载下来,这里分享一下下载指定android版本的方法。主要敲git的指令。

1.下载git

https://git-for-windows.github.io/

2.选择Git Bash, 按照下面指令

git clone --branch <tag_name> <repo_url> <target_path>

例如

https://android.googlesource.com/platform/frameworks/base/+refs



 

可用git指令

git clone --branch android-4.4.2_r2 https://android.googlesource.com/platform/frameworks/base android

表示要克隆tag android-4.4.2_r2到文件夹android。

猜你喜欢

转载自kevinffk.iteye.com/blog/2242668
今日推荐