Cannot see remote branches in Intellij

时间:2019-03-19 14:48:02

标签: git intellij-idea

I recently got back to work on a project, and would like to merge my changes back into master. The issue is that I cannot see any of the remote branches in the Intellij IDEA. I've tried using Fetch and Pull, but have had no luck.

I'm not sure if this is relevant, but when I initially cloned the project, it was from this specific branch as opposed to master:

git clone -b <BRANCH NAME HERE> --single-branch <SSH PROVIDED BY GIT>

Edit: Though I've accepted an answer, I just wanted to mention that this also occurs when I clone from the master branch, switch to the branch that I should be on (which, incidentally, uses Gradle instead of Maven), and then create the project with the Gradle build file as an existing source (File -> New -> Project from existing source). Obviously I did something wrong when I build the project.

1 个答案:

答案 0 :(得分:1)

尝试一下:

  1. 将您的遥控器作为新的远程存储库添加到Intellij
  2. 再次运行git fetch

要添加远程存储库VCS-> Git-> Remotes...

这是它的样子: enter image description here