powershell - 如何将 PowerShell 设置为我的 SmartGit "Open Git-Shell"命令?

标签 powershell smartgit

我尝试将 PowerShell 设置为我的“Open Git-Shell”选项,但没有成功。在命令字段中,我设置了以下选项:

命令:

powershell.exe

参数:

-noexit -executionpolicy Unrestricted -command "cd '${filePath}'"

这将以非交互模式启动 PowerShell(即:进程在任务管理器中运行,但 UI 不可见)。我做错了什么?

最佳答案

我尝试使用 cmd.exeSmartGit 中的“Open Git-Shell”调用 PowerShell >。我能够通过以下方式获得所需的结果:

命令:

cmd.exe

参数:

/c start powershell.exe -noexit -executionpolicy Unrestricted -command "cd '${filePath}'"

关于powershell - 如何将 PowerShell 设置为我的 SmartGit "Open Git-Shell"命令?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26112954/

相关文章:

c# - 如何在C#控制台应用程序(如Powershell)中传递自定义类型?

git - 如何找出我的功能分支是从哪个共享分支分支的

git - SmartGit 相当于 git reset --hard 9f9f9f9f 的东西是什么

Git子模块管理策略

smartgit - 更改功能分支时自动存储/应用更改

java - Powershell环境设置

c# - 从 C# 调用带参数的 PowerShell 脚本

powershell - 使用 NuGet uninstall.ps 删除解决方案文件夹

powershell - FFMPEG 插值视频 |第一帧卡住,没有对第二帧进行任何插值

git - 不使用 squash 与使用 squash 选项 merge 提交