通过易升更新了Windows10之后右键菜单里没有 Git Bash Here 了。

433 阅读1分钟
  1. Win + R 打开运行输入 regedit 回车打开注册表;

  2. 找到 [HKEY_CLASSES_ROOT\Directory\Background\shell],前面为小写,往下拉会有大写首字母排序;注:若没有 [shell] 则新建项 [shell]

  3. 右键 [shell] - 新建 - 项 [Git Bash Here],值为 “Git Bash Here"(此为右键菜单显示名称,若未设置则默认显示左侧该项的名字);

  4. 右键 [Git Bash Here] - 新建 - 项 [command],默认值为 "git 安装根目录\bin\bash.exe",注意是Git文件下bin中的bash.exe不是git-bash.exe;

  5. 添加 Git 小图标:右键 [Git Bash Here] - 新建 - 字符串值,名称为 Icon,值为 “git 安装根目录\mingw64\share\git\git-for-windows.ico”。

    参考链接:www.jianshu.com/p/142802907…