git获取Android源码:
1. git clone git://android.git.kernel.org/ + project path.
2. mkdir mydroid
cd mydroid
repo init -u git://android.git.kernel.org/platform/manifest.git
repo sync
git clone获取比较大的源码时, 不能断点续传, 比较恼火.
可以使用 git fetch 解决:
mkdir common
cd common
git init
git fetch http://android.git.kernel.org/common.git
传完后,
git branch -a
git checkout remotes/....
如果中间断掉了, 可以直接进入common目录, 继续git fetch就可以续传了.
本文介绍了使用Git获取Android源码的方法,包括基本的克隆命令及如何通过使用`git fetch`来实现断点续传的功能,对于处理大型源码库尤其有用。
3760





