Git commands not in context menu for Document Library

前提是你 提交于 2019-12-13 03:44:54

问题


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?


回答1:


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"


来源:https://stackoverflow.com/questions/32490779/git-commands-not-in-context-menu-for-document-library

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!