IntelliJ | How to check out specific branch

Viewed 3912

Recently I started development in IntelliJ with Git. I am trying to check out one specific remote branch only. But while checking out source code, IntelliJ never asked for which branch you want to check out. And by default, it checked out master branch only. Once the master branch is checked out then I can switch to my specific branch.

I searched IntelliJ documentation about how to check out specific branch or give the intial branch name to check out like eclipse but not able to locate it.

So can someone please help me about how to check out specific branch only using IntelliJ?

Thanks in advance.

3 Answers

You should find a "git" tabon the bottom left of your IDE. There, you can find the different branches. if you right click on the branch you want to check out a pop-up menu appears with a "checkout" option" displayed

enter image description here

Related