1.通过cmd运行输入‘regedit’
2.找到[HKEY_CLASSES_ROOT\Directory\Background]。
3.在[Background]下如果没有[shell],则右键-新建项[shell]。
4.在[shell]下右键-新建项[open in Git ],其值为“Git Bash Here",此为右键菜单显示名称。
5.在[open in Git]下右键-新建-字符串值[Icon],双击编辑,其值为“D:...\Git\mingw64\share\git\git-for-windows.ico”。此为菜单加图标。本步不是必须,引入git图标路径
6.在[open in git]下右键-新建-项[command],其值为 "D:\Program Files\Git\git-bash.exe" ,引入git启动路径