将以下代码保存到 git-bash.reg
, 然后运行.
注意 : 把引号内的路径改为你自己的, 还要转义一下.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\git-bash]
@="打开 Git Bash"
"icon"="\"D:\\Program Files\\Git\\git-bash.exe\""
[HKEY_CLASSES_ROOT\Directory\Background\shell\git-bash\command]
@="\"D:\\Program Files\\Git\\git-bash.exe\""