Home > Software design >  Cannot see remote branches in WebStorm
Cannot see remote branches in WebStorm

Time:10-24

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 = [email protected]:XXX/XXX.git
    fetch =  refs/heads/*:refs/remotes/origin/*
[remote "template"]
    url = [email protected]: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?

CodePudding user response:

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

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

  • Related