tdmsoares
tdmsoares

Reputation: 533

How can I switch the working branch (Git) in Android Studio

I'm working in Android Studio with 3 branches as follow:

master -> Transactions -> Sub

Now the default branch I am developing is Sub, but now I want to return to the Branch Transactions and later I want to return in Sub again.

I don't want merge the branches now

How can I do that?

Upvotes: 1

Views: 6694

Answers (2)

aga
aga

Reputation: 29454

I'm not a Git user, but I think you can use the Studios' Git button located in the bottom left corner:

enter image description here

Upvotes: 2

rekire
rekire

Reputation: 47985

Just make sure that you don't have uncommitted changes. When done you can switch the braches as you like. If you have unstaged changes you can stash them to ignore the changes for now without discarding them. I have no idea how to stash it within Android Studio, but can switch the branches in the lower right of Android Studio check this screenshot:

branches screenshot

Upvotes: 3

Related Questions