Git——windows电脑右键添加git bash

50 阅读1分钟

Step 1 : 在CMD中输入 "regedit"

Step 2 : 运行注册表管理器

Step 3 : 定位到 HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\Background\shell

Step 4 : 右键点击 "shell" 选择 New > Key. 将KEY命名为 "Bash"

image.png Step 5 : 设置值为 "open in Bash"

image.png

image.png

Step 6 : 创建一个新的KEY命名为"command". 设置值为你的git-bash.exe 路径.

image.png

image.png

image.png

关闭注册表管理器。