我在 WebStorm 中添加了另一個遙控器,但我無法看到所有遙控器的分支串列,只列出了“原點”遙控器:

這是我的.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,其中列出了所有分支(遠程 本地)

所以,看起來我確實配置了 2 個遙控器,但是“模板”遙控器的分支沒有顯示在 WebStorm 上。知道為什么嗎?
uj5u.com熱心網友回復:
通常通過VSC-> Git->Fetch會下載所有遠程分支......
你在哪里執行git branch -a?在 IntelliJ 終端中?如果不是,請嘗試通過 VSC-Settings 獲取所有分支。
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/519957.html
