Android的工作室 - 检出* *分支从GitHub上检出、分支、工作室、Android

2023-09-05 02:13:56 作者:額們還要繼續錯過

我们在GitHub上有3个分支回购。例如,假设主 开发和 preVIEW

We have a repo in GitHub which has 3 branches. For example, say master, developer and preview.

当我签这个回购协议在Android的工作室,它似乎检出主唯一分支机构,忽略所有其他部门。 (Eclipse中常常问我们哪些分支,当我们从克隆GitHub的回购结算/进口)

When I checkout this repo in Android Studio, it seems to checkout the master branch only, ignoring all other branches. (Eclipse used to ask us which branch to checkout/import when we are cloning a repo from GitHub)

现在的问题是:?我们怎样才能选择一个分支,在检查出回购成的Andr​​oid Studio的时间

The question is : How can we select a branch at the time of checking out a repo into Android Studio?

图片1 - 的从GitHub上检出

Image 1- Checking out from GitHub

图片2 - 的它只是要求回购协议的URL,但不会分支

Image 2- It just asks for the repo URL, but NOT a branch.

推荐答案

在VCS菜单中,选择Git和点击分支,选择要使用哪个分支。

In VCS menu, you choose git and click branch to choose which branch you want to use.

或者点击右下角的git的菜单。

Or click right bottom corner git menu.