Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio - checkout a *branch* from GitHub

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

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)

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

Image 1- Checking out from GitHub

Checking out from GitHub

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

It just asks for the repo URL, but **NOT** a branch.

like image 515
Vishnu Haridas Avatar asked Jul 11 '13 09:07

Vishnu Haridas


1 Answers

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

enter image description here

Or click right bottom corner git menu.

enter image description here

like image 191
Fantasy Fang Avatar answered Oct 01 '22 06:10

Fantasy Fang