我在启动画面上有一些最近使用的存储库,我想删除它,因为我不再使用它们了。如何删除它们?
OS = Windows 7
我查看了注册表并搜索了git目录,无法找到最近使用的列表的存储位置。
答案 0 :(得分:3)
来自git-gui sources choose_repository.tcl
proc _get_recentrepos {} {
set recent [list]
foreach p [get_config gui.recentrepo] {
if {[_is_git [file join $p .git]]} {
lappend recent $p
} else {
_unset_recentrepo $p
}
}
return [lsort $recent]
}
请检查git config
,看看是否有可以修改的 gui.recentrepo
行。
请注意,移动那些旧的回购(即确保其记录的路径不再是有效路径)将使git-gui 中的条目自动消失。