到msysgit的老家下载安装程序。http://code.google.com/p/msysgit
选择下载“** Full installer if you want to use official Git **”对应的Git-*.*.*.*-preview20080701.exe。实际上,总可以选择最新的Git版本,以取得更好的使用效果。
选择下载“** Full installer if you want to use official Git **”对应的Git-*.*.*.*-preview20080701.exe。实际上,总可以选择最新的Git版本,以取得更好的使用效果。
安装的过程很简单,基本上可以使用默认设置。只是在设置路径的时候要注意一下,为了避免与Windows路径导致的意外情况,还是使用“Use Git Bash Only”比较安全。
安装完成后,我们在电脑上建立一个文件夹,用来存放我们将要下载的源码。
文件夹上右击鼠标,选中Git Bash选项,会打开一个窗口命令,类似CMD命令窗口。
源码地址:http://android.git.kernel.org/
git clone git://android.git.kernel.org/+工程模块的相对路径。
例如:我想下载platform/packages/apps/Mms.git这个模块。
那么完整URL为:
git clone git://android.git.kernel.org/platform/packages/apps/Mms.git
输入如上按回车即可,会将此模块源码下载在你的android source文件夹下。
下载完成后,去你的目标文件夹android source下看看,就会有你想要的源码推荐文章扩展阅读:Windows下安装githttp://tanghaibo001.blog.163.com/blog/static/906861202010112212237868/