Android的回购命令和开关分支分支、命令、Android

2023-09-05 07:49:01 作者:努力才幸福

我觉得我有混帐的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.