__都非拉得的博客

Posted on 30 Oct 2014

删除右键菜单中的git相关栏目

windows x64

cmd进入”D:\Program Files (x86)\Git\git-cheetah”目录,运行

regsvr32 /u git_shell_ext64.dll

windows x32

cmd进入”D:\Program Files\Git\git-cheetah”目录,运行

regsvr32 /u git_shell_ext.dll

可注销右键菜单.

在右键菜单中添加Git Bash

windows x64

Windows Registry Editor Version 5.00
;添加Git Bash(&Q)右键菜单
[HKEY_CLASSES_ROOT\Directory\Background\shell\open in git]
@="Git Bash(&Q)"
[HKEY_CLASSES_ROOT\Directory\Background\shell\open in git\command]
@="C:\\Windows\\SysWOW64\\cmd.exe /c \"\"D:\\Program Files (x86)\\Git\\bin\\sh.exe\" --login -i\""

windows x32

Windows Registry Editor Version 5.00
;添加Git Bash(&Q)右键菜单
[HKEY_CLASSES_ROOT\Directory\Background\shell\open in git]
@="Git Bash(&Q)"
[HKEY_CLASSES_ROOT\Directory\Background\shell\open in git\command]
@="C:\\Windows\\system32\\cmd.exe /c \"\"D:\\Program Files\\Git\\bin\\sh.exe\" --login -i\""