0

你可以做

start powershell -command ls

打开 PowerShell 并让它列出文件。我正在尝试用 Git Shell 做类似的事情。目前我有

%LOCALAPPDATA\GitHub\Github.appref-ms --open-shell -command ls

它打开 Git Shell,但不做任何其他事情。以这种方式启动Git Shell后是否可以运行命令?

4

1 回答 1

0

由于这还没有得到回答,我将提供使用 git-bash 而不是 MS 应用程序参考文件的替代解决方案。

start /b cmd /c "C:/Program Files/Git/git-bash.exe" /C/path/to/script.sh

看到这个问题:Cant run shell script using Git Bash interface on Windows10

于 2017-08-14T07:13:02.580 回答