Git命令不在文档库的上下文菜单中 [英] Git commands not in context menu for Document Library

查看:142
本文介绍了Git命令不在文档库的上下文菜单中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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



当我使用文件夹跳转的常规顺序从<$开始导航到文件夹 C:\ Users \ [userid] \Documents\Visual Studio 2013\Projects c $ c> C:,然后在文件夹窗口中右键单击,即可获得所有常用的Git上下文菜单命令,例如但是,当我从文档库开始访问同一个文件夹时,无论是从开始菜单还是点击文件夹左侧的库中的文件夹



我是否需要更改这些命令的某些Git设置以显示在文档库上下文菜单中?

解决方案

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

  Windows注册表编辑器版本5.00 
[HKEY_CLASSES_ROOT\Directory\Background\shell\bash\命令]
@ =cmd / c start / d \%v \bash

您需要添加一个与此类似的键:

  Windows注册表编辑器版本5.00 
[HKEY_CLASSES_ROOT\LibraryFolder\background\shell\bash\command]
@ = cmd / c start / d \%v \bash


I'm using Git version 1.9.5.msysgit.1 and Win 7 Enterprise.

When I navigate to the folder C:\Users\[userid]\Documents\Visual Studio 2013\Projects using a regular sequence of folder jumps starting from C:, then right-click in the folder window, I get all the usual Git context menu commands, e.g. Git Bash.

However, when I go to the same folder starting from the Document Library, either from the Start Menu or clicking in the Libraries on the left side of the folder window, the Git context menu commands are missing.

Do I need to change some Git settings for these commands to appear in the Document Library context menu?

解决方案

You probably have a key in your registry similar to this:

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

You need to add a key similar to this:

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

这篇关于Git命令不在文档库的上下文菜单中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆