git-bash.exe 在带有自定义命令的上下文菜单中

git-bash.exe in context menu with custom command

我想要一个上下文菜单条目,如 Git Bash here,并处理了一个额外的命令。

我要调用的命令是git clean -xdf --dry-run

到目前为止,我所做的是在注册表编辑器中添加一个后缀为 -c <command> 的额外条目,但它不起作用。 windows弹出并立即关闭。

以下命令有效,但它不使用 git bash。它使用内部命令提示符:

cmd.exe /C "git clean -xdf --dry-run -i"