[英]Xcode 12.1 Source Control not showing all branches
In Xcode I can branch from master and push just fine.在 Xcode 中,我可以从 master 分支并推送就好了。 The new branch appears in Gitlab as one would expect.正如人们所料,新分支出现在 Gitlab 中。
When I use Xcode to clone the repo into a location, it asks me which branch to clone which seems fair.当我使用 Xcode 将 repo 克隆到某个位置时,它会询问我克隆哪个分支似乎公平。 What I am confused about is that I can only see the cloned branch, not the other ones.我感到困惑的是,我只能看到克隆的分支,而不能看到其他分支。 If someone else (or I on another machine) create a branch, it won't update that addition on the other Xcode.如果其他人(或我在另一台机器上)创建了一个分支,它不会在另一个 Xcode 上更新该添加项。
I know how to navigate branches via git
in Terminal but then I don't understand why Xcode has the Branches
entry to begin with.我知道如何通过终端中的git
导航分支,但后来我不明白为什么 Xcode 开始有Branches
条目。 I can merge via Terminal but I thought the whole point of Xcode Source Control is to have a UI for visualizing conflicts etc.我可以通过终端进行合并,但我认为 Xcode Source Control 的重点是拥有一个用于可视化冲突等的 UI。
Am I missing something or is this working normally for everyone else?我是否遗漏了什么,或者这对其他人来说是否正常?
Ok I found it: https://stackoverflow.com/a/54921527/2161301好的,我找到了: https : //stackoverflow.com/a/54921527/2161301
When you expand Remotes
and origin
you will find the other branches too.当您展开Remotes
和origin
您也会发现其他分支。 So the "top level" Branches
entry seems to be exclusively for local ones.因此,“顶级” Branches
条目似乎仅适用于本地Branches
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.