Android Studio - 从 GitHub 签出一个 *branch* [英] Android Studio - checkout a *branch* from GitHub
问题描述
我们在 GitHub 上有一个 repo,它有 3 个分支.例如,说master、developer 和预览.
We have a repo in GitHub which has 3 branches. For example, say master, developer and preview.
当我在 Android Studio 中检出这个 repo 时,它似乎只检出 master 分支,忽略所有其他分支.(当我们从 GitHub 克隆存储库时,Eclipse 曾经询问我们要检出/导入哪个分支)
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)
问题是:我们如何在将 repo 检出到 Android 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- 它只要求提供 repo 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.
这篇关于Android Studio - 从 GitHub 签出一个 *branch*的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!