Git 右键添加Git Bash

  1. win + r
  2. 输入regedit
  3. 进入 计算机\HKEY_CLASSES_ROOT\Directory\Background\shell
  4. 新建如下的项 git bash 和 command

img

  1. 在git bash 中添加字符串值 Icon ,数值位于git 安装目录下\Git\mingw64\share\git\git-for-windows.icoimg
  2. 在command 中添加运行的命令,修改默认的数值 \Git\git-bash.exeimg

参考: