开始学习Git,请教一个问题,非常感谢!

15 views
Skip to first unread message

Sunny Hare

unread,
Apr 16, 2012, 4:44:42 AM4/16/12
to GotGit
大家好,
我通过以下方式获取到了android 源代码。
$repo init -u https://android.googlesource.com/platform/manifest.git
-b android-2.3.4_r1
$repo sync

我现在想要获取android4.0.3的代码,需要重新这样做吗 ?如:
$repo init -u https://android.googlesource.com/platform/manifest.git
-b android-4.0.3_r1
$repo sync

因为重新更新下来需要好长时间,有没有更好的办法呢 ?我刚刚开始接触git,很多地方都不明白,是个小白。希望大家能帮助下,谢谢!

Chunlin Zhang

unread,
Apr 16, 2012, 4:59:47 AM4/16/12
to got...@googlegroups.com
2012/4/16 Sunny Hare <zhu67...@gmail.com>:
我这里是在内网维护一个 anroid 代码镜像,这样要拿哪个分支都是从这个镜像拿会比较快,当然想更新代码的时候就要更新镜像了
可以参考这两篇:
http://qing.weibo.com/1410071074/540bfa223300062w.html
http://qing.weibo.com/1410071074/540bfa223300064w.html
Reply all
Reply to author
Forward
0 new messages