`
lxr215
  • 浏览: 58884 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

git获取Android源码,可以断点续传

阅读更多

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就可以续传了.

1
2
分享到:
评论
2 楼 hanbing99wt 2013-08-01  
不管用,还是重新下载
1 楼 w3349516 2010-10-26  
git checkout remotes  出错
remotes 是什么意思呢?

相关推荐

Global site tag (gtag.js) - Google Analytics