Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get IntelliJ to see my remote git branches

I'm using BitBucket and I created a branch on another machine with IntelliJ and pushed it in to my repo. I can see the branch on the BitBucket site, but when I try to access the remote branch using IntelliJ on another machine I can't see the new branch when I go to VCS -> git -> Remote Branches. I tried doing a pull, but that only brought down the head changes (which currently points to master), and didn't update the remote branches list. Is there something you have to do to see the remote branches (besides Head and Master) in IntelliJ?

like image 282
Zipper Avatar asked Aug 21 '13 21:08

Zipper


People also ask

How do I find remote branches in IntelliJ?

To create remote Git branch in IntelliJ idea one should: Commit and push all your changes first. Create local branch by going to VCS -> Git -> Branches -> New Branch. You can see your local and remote branches in this menu too, as well as current active branch.

How do I link my Git repository to IntelliJ?

Press Ctrl+Alt+S to open the IDE settings and select Version Control | GitHub. Select Log In via GitHub. In the browser window that opens, click Create an account and complete the registration process on GitHub. Return to the IntelliJ IDEA settings, click Cancel, and then repeat steps 2 and 3.


1 Answers

In case anyone runs in to something similar I found that on my IntelliJ at least I had to run a fetch and then I could see the remote branches. It didn't appear that a pull was sufficient even though pull is supposed to fetch.

like image 180
Zipper Avatar answered Sep 18 '22 06:09

Zipper