【问题标题】:Git commands not in context menu for Document LibraryGit 命令不在文档库的上下文菜单中
【发布时间】:2015-09-09 23:37:51
【问题描述】:

我正在使用 Git 版本 1.9.5.msysgit.1 和 Win 7 Enterprise。

当我使用从C: 开始的常规文件夹跳转序列导航到文件夹C:\Users\[userid]\Documents\Visual Studio 2013\Projects,然后在文件夹窗口中右键单击时,我会得到所有常用的 Git 上下文菜单命令,例如Git Bash。

但是,当我从“开始”菜单或单击文件夹窗口左侧的“库”从“文档库”进入同一文件夹时,Git 上下文菜单命令丢失。

我是否需要更改一些 Git 设置才能让这些命令出现在文档库上下文菜单中?

【问题讨论】:

    标签: git windows-7 contextmenu


    【解决方案1】:

    您的注册表中可能有一个类似于此的键:

    Windows Registry Editor Version 5.00
    [HKEY_CLASSES_ROOT\Directory\Background\shell\bash\command]
    @="cmd /c start /d \"%v\" bash"
    

    你需要添加一个类似这样的键:

    Windows Registry Editor Version 5.00
    [HKEY_CLASSES_ROOT\LibraryFolder\background\shell\bash\command]
    @="cmd /c start /d \"%v\" bash"
    

    【讨论】:

    • 奇怪的是,我的注册表中没有任何bash 键(我搜索了字符串“bash”,但没有找到任何结果)。
    • @sigil 我真的需要为你拼出来吗?重要的部分是HKEY_CLASSES_ROOT\LibraryFolder\background\shell\...,而不是bash
    • 我有这个键:[HKEY_CLASSES_ROOT\Directory\background\shell\cmd\command] @=cmd.exe /s /k pushd "%V" 但在[HKEY_CLASSES_ROOT\LibraryFolder\background] 中我没有shell 键,LibraryFolder 中的其他键都没有嵌套command 键。我应该创建密钥[HKEY_CLASSES_ROOT\LibraryFolder\background\shell\cmd\command]吗?
    • @sigil 抱歉,但如果你对 Windows 注册表有这个小想法,那么你不应该弄乱它
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-12-06
    • 2018-04-15
    • 1970-01-01
    • 2011-08-01
    • 1970-01-01
    • 2016-06-04
    • 1970-01-01
    相关资源
    最近更新 更多