Step 1 : 在CMD中输入 "regedit"
Step 2 : 运行注册表管理器
Step 3 : 定位到 HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\Background\shell
Step 4 : 右键点击 "shell" 选择 New > Key. 将KEY命名为 "Bash"
Step 5 : 设置值为 "open in Bash"
Step 6 : 创建一个新的KEY命名为"command". 设置值为你的git-bash.exe 路径.
关闭注册表管理器。