How do I get IntelliJ to see my remote git branches

I found the same thing with IntelliJ, also fetch not only gets all remote branches for the current repository in your project, but it also gets them for all repositories in the project.

It is safe to say that a pull only fetches for the current repository and branch that you are on, and fetch fetches for all repositories in the project.

(I would have simply commented on Zipper's excellent answer, but I seem to only have one reputation point :-()


I was in the same case, my repo is in Bitbucket, I created a branch from another machine but in my main machine I was unable to see it. I tried several times VCS->Git->Fetch without success. I even restart IntelliJ but same result. To solve my issue, I created the branch manually and use:

git branch --set-upstream-to=origin/my-branch my-branch

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.