-
Win + R 打开运行输入 regedit 回车打开注册表;
-
找到 [HKEY_CLASSES_ROOT\Directory\Background\shell],前面为小写,往下拉会有大写首字母排序;
注:若没有 [shell] 则新建项 [shell]
-
右键 [shell] - 新建 - 项 [Git Bash Here],值为 “Git Bash Here"(此为右键菜单显示名称,若未设置则默认显示左侧该项的名字);
-
右键 [Git Bash Here] - 新建 - 项 [command],默认值为 "git 安装根目录\bin\bash.exe",注意是Git文件下bin中的bash.exe不是git-bash.exe;
-
添加 Git 小图标:右键 [Git Bash Here] - 新建 - 字符串值,名称为 Icon,值为 “git 安装根目录\mingw64\share\git\git-for-windows.ico”。