将git Bash Here改为Shift+右键显示
一直看不习惯右键菜单多出一些按钮,所以对比
PowerShell按住Shift右键才显示按钮的方式,更改了注册表,达到了这种效果。
注:文末有自动修改的方法。
打开注册表编辑器
无需多说,WINkey+R输入regedit。

开始修改
分别定位HKEY_CLASSES_ROOT\Directory\shell\和HKEY_CLASSES_ROOT\Directory\Background\shell\,对比PowerShell\可以发现其比git_shell\和git_gui\多出了一个名为Extended的字符串值。

我们尝试在HKEY_CLASSES_ROOT\Directory\Background\shell\git_shell\下新建Extended字符串值,发现效果可行。

将另外三个需要修改的地方,效果如下。


自动修改
将以下代码复制到一个文本文档中,更改后缀为.reg,并双击打开即可
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\background\shell\git_gui]
"Extended"=""
[HKEY_CLASSES_ROOT\Directory\background\shell\git_shell]
"Extended"=""
[HKEY_CLASSES_ROOT\Directory\shell\git_shell]
"Extended"=""
[HKEY_CLASSES_ROOT\Directory\shell\git_shell]
"Extended"=""
后悔药
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\background\shell\git_gui]
"Extended"=-
[HKEY_CLASSES_ROOT\Directory\background\shell\git_shell]
"Extended"=-
[HKEY_CLASSES_ROOT\Directory\shell\git_shell]
"Extended"=-
[HKEY_CLASSES_ROOT\Directory\shell\git_shell]
"Extended"=-

浙公网安备 33010602011771号