无法使用 GitHub 桌面检出远程分支

Can't checkout remote branch using GitHub Desktop

当我第一次使用 GitHub 桌面版(windows 版本)克隆一个 repo 时,我能够看到所有分支并可以检出分支。

但是,如果另一个贡献者创建了一个新的远程分支(在我完成克隆之后),GitHubDesktop 无法获取和签出新分支。可以通过 GitHub 网站查看分支机构。我发现通过 GitHub 桌面检出这些分支的唯一方法是删除本地存储库并再次克隆。我期待 "Sync" 按钮处理从远程仓库获取新分支。

有什么想法吗?

根据 Steve Ward 在 GitHub 的支持:

You should be able to hit F5 in GitHub Desktop to refresh the repository and fetch any new branches from the remote repository. There currently aren't any animations for this process, but it should work without issue. [...] we automatically fetch new branches every five minutes as well.

您也可以点击客户端右上角的"Gear"按钮,select"Open in Git Shell"然后在命令[=16]中输入命令gitfetch =] 已打开...