gitintellij-ideawebstormgit-remote

Cannot see remote branches in WebStorm


I have added another remote in WebStorm, but I'm unable to see the list of branches for all remotes, only the "origin" remote is listed:

enter image description here

Here is my .git/config:

[core]
    repositoryformatversion = 0
    filemode = true
    bare = false
    logallrefupdates = true
    ignorecase = true
    precomposeunicode = true
[pull]
    rebase = true
[remote "origin"]
    url = git@github.com:XXX/XXX.git
    fetch = +refs/heads/*:refs/remotes/origin/*
[remote "template"]
    url = git@github.com:XXX/TEMPLATE-XXX.git
    fetch = +refs/heads/*:refs/remotes/template/*
[branch "main"]
    remote = origin
    merge = refs/heads/main

Here is the output of git branch -a, which lists all branches (remotes+local)

enter image description here

So, it looks like I do have 2 remotes configured, but the branches of the "template" remote don't show on WebStorm. Any idea why?


Solution

  • Normally via VSC -> Git -> Fetch would download all remote branches…

    Where do you execute git branch -a? In IntelliJ terminal? If no, try via VSC-Settings to fetch all branches.