1. window + R ,然后输入 regedit 进入注册表
  2. 在注册表中按照以下目录进入: HKEY_CLASSES_ROOT->Directory->Background->shell
  3. 右键点击 shell ,选择新建,然后选择项,名称改为 Git Bash Here
  4. 添加图标:右建点击刚新建的项,选择新建,然后选择字符串值,名称设置为 Icon
  5. 添加 Git 图标路径: D:\Git\Git\mingw64\share\git\git-for-windows.ico
  6. 添加命令:在 Git Bash Here 项中新建一个项,将数据改成 D:\Git\Git\bin\bash.exe ,完毕