Android的回购命令和开关分支 [英] Android repo command and switching branches

查看:158
本文介绍了Android的回购命令和开关分支的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我觉得我有混帐的pretty的好理解,但是当涉及到​​回购的命令,我迷路了。我读过有关回购的命令,但我仍然不知道它是怎么绑得不得了。

I feel I have a pretty good understanding of git, but when it comes to the repo command, I get lost. I've read about the repo command, but I'm still not sure how it ties everything together.

我的最大的问题是,能否从姜饼改变我目前的分支机构,ICS和可能回来吗?

My biggest question is can I change my current branches from gingerbread to ICS and possibly back?

我看到了命令:

repo init -u https://android.googlesource.com/platform/manifest

这是我的理解,这将创建与主分支回购。如果我想指定的分支,我可以这样做:

From my understanding, this will create a repo with the master branch. If I want to specify the branch, I can do:

repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1

下载大约是8GB,我相信,所以我不希望有吹我的回购路程,如果他们共享code。有没有办法在回购转换分支?

The download is about 8GB, I believe, so I don't want to have to blow my repo away if they share code. is there a way to switch branches in repo?

推荐答案

如果您运行回购的init 第二次用不同的分支,你可以简单地回购同步,它不会重新下载整个源$ C ​​$ C。

If you run repo init a second time with a different branch, you can simply repo sync and it will not download the entire source code again.

这篇关于Android的回购命令和开关分支的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆