Git GUI -- 如何回到打开屏幕

Git GUI -- how to get back to opening screen

当我重新启动 Git GUI 时,它会显示以下欢迎屏幕:

然后,在我的本地计算机上打开一个(许多)现有存储库后,我进入以下屏幕:

但是,从这里开始,我想回到原来的欢迎屏幕并打开一个不同的本地存储库。这似乎是不可能的。 Repository 下的唯一选项是:

和 none 这些有助于“打开现有存储库”。

早在 9 年前就有人问过一个相关问题 here。答案似乎表明这是 Git Gui 中的错误。它仍然是一个错误吗?有解决办法吗?

截至目前,如果我想打开一个不同的存储库,我别无选择,只能关闭 Git Gui 的当前 运行 实例,然后打开 Git Gui 应用程序再次.

此行为来自 git-gui.sh,当它 检测到 $GIT_DIR (.git) 时,将调用 choose_repository

set picked 0
if {[catch {
        set _gitdir $env(GIT_DIR)
        set _prefix {}
        }]
    && [catch {
        # beware that from the .git dir this sets _gitdir to .
        # and _prefix to the empty string
        set _gitdir [git rev-parse --git-dir]
        set _prefix [git rev-parse --show-prefix]
    } err]} {
    load_config 1
    apply_config
    choose_repository::pick
    set picked 1
}

git-gui/lib/choose_repository.tcl是显示“开机画面”的Tcl模块。

它仅从起始脚本调用,再也不会调用。

这是 set/decided 2007 年 9 月,14 年前,在 commit ab08b36

git-gui: Allow users to choose/create/clone a repository

If we are started outside of a git repository than it is likely the user started us from some sort of desktop shortcut icon in the operating system.

In such a case the user is expecting us to prompt them to locate the git repository they want to work on, or to help them make a new repository, or to clone one from an existing location.

This is a very simple wizard that offers the user one of these three choices.

这个选项从来没有更新过,所以它不是一个“错误”。 这似乎“按设计”工作。