1、通過在“運行”中輸入‘regedit’,打開注冊表。
2、找到[HKEY_CLASSES_ROOT\Directory\Background]。
3、在[Background]下如果沒有[shell],則右鍵-新建項[shell]。
4、在[shell]下右鍵-新建項[open in Git],其值為“Git Bash Here",此為右鍵菜單顯示名稱。
5、在[shell]下右鍵-新建-字符串值[Icon],雙擊編輯,其值為“D:\...\Git\mingw64\share\git\git-for-windows.ico”。此為菜單加圖標。
6、在[open in git]下右鍵-新建-項[command],其值為 "D:\Program Files\Git\git-bash.exe"