Windows Registry Editor Version 5.00 ; 文件夹右键 → "Git Bash Here" [HKEY_CLASSES_ROOT\Directory\shell\gitbash] @="Git Bash Here" "Icon"="D:\\Git\\git-bash.exe" [HKEY_CLASSES_ROOT\Directory\shell\gitbash\command] @="D:\\Git\\git-bash.exe" ; 文件夹空白处右键 → "Git Bash Here" [HKEY_CLASSES_ROOT\Directory\Background\shell\gitbash] @="Git Bash Here" "Icon"="D:\\Git\\git-bash.exe" [HKEY_CLASSES_ROOT\Directory\Background\shell\gitbash\command] @="D:\\Git\\git-bash.exe" ; 右键 .git 文件夹也可以打开 [HKEY_CLASSES_ROOT\LibraryFolder\background\shell\gitbash] @="Git Bash Here" "Icon"="D:\\Git\\git-bash.exe" [HKEY_CLASSES_ROOT\LibraryFolder\background\shell\gitbash\command] @="D:\\Git\\git-bash.exe" ; ===== Git GUI Here ===== [HKEY_CLASSES_ROOT\Directory\shell\gitgui] @="Git GUI Here" "Icon"="D:\\Git\\cmd\\git-gui.exe" [HKEY_CLASSES_ROOT\Directory\shell\gitgui\command] @="D:\\Git\\cmd\\git-gui.exe" [HKEY_CLASSES_ROOT\Directory\Background\shell\gitgui] @="Git GUI Here" "Icon"="D:\\Git\\cmd\\git-gui.exe" [HKEY_CLASSES_ROOT\Directory\Background\shell\gitgui\command] @="D:\\Git\\cmd\\git-gui.exe" [HKEY_CLASSES_ROOT\LibraryFolder\background\shell\gitgui] @="Git GUI Here" "Icon"="D:\\Git\\cmd\\git-gui.exe" [HKEY_CLASSES_ROOT\LibraryFolder\background\shell\gitgui\command] @="D:\\Git\\cmd\\git-gui.exe"