在WebStorm中看不到远程分支

问题描述 投票:0回答:1

我在 WebStorm 中添加了另一个遥控器,但我无法看到所有遥控器的分支列表,只列出了“原始”遥控器:

enter image description here

这是我的

.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

这是

git branch -a
的输出,其中列出了所有分支(远程+本地)

enter image description here

所以,看起来我确实配置了 2 个遥控器,但“模板”遥控器的分支不会显示在 WebStorm 上。知道为什么吗?

git intellij-idea webstorm git-remote
1个回答
3
投票

通常通过 VSC -> Git -> Fetch 会下载所有远程分支…

在哪里执行

git branch -a
?在 IntelliJ 终端中?如果没有,请尝试通过 VSC-Settings 获取所有分支。

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.