记得第一次安装 git 的时候,就是因为 Git 安装的时候会默认一次性 Git Bash Here,Git GUI Here 等三个会一起出现,而本人由于洁癖就卸载了重新安装了一次拒绝添加右键菜单的行为。

然而再开发途中,回到桌面点 exe 再 cd 命令到该文件夹,着实麻烦,于是懒癌战胜洁癖,开始着手了。

其实除了 Git Bash Here 之外的基本都不需要(这样增加一个到右键菜单还是满足的,嘻嘻)。

and hence, it is better to set it manually

所以直接 ... win+r,打开注册表再一个个去找,显然很麻烦,不如直接通过 reg 文件直接添加 于是就有

    [-HKEY_CLASSES_ROOT\Directory\Background\shell\open in git]
    [HKEY_CLASSES_ROOT\Directory\Background\shell\open in git]
    @="Git Bash Here"
    "icon"="E:\\Git\\mingw64\\share\\git\\git-for-windows.ico"
    [HKEY_CLASSES_ROOT\Directory\Background\shell\open in git\command]
    @="E:\\Git\\git-bash.exe"

需要注意的是修改好自己的目录地址....不要直接复制我的,还有就是最后保存 reg 文件。

emmm... 现在右键多了一个,明显使用 git 更舒服了..