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?
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With