问题
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