当使用命令应用git存储时:
git stash apply stash@{1}
正如关于git存储的文档中所建议的那样。
我收到错误:
unknown option: -encodedCommand error
发布于 2018-06-15 09:47:09
我没有意识到的..。
我在powershell中(使用花式),当然{}表示powershell代码。
因此,围绕“”将确保powershell将其解释为字符串。
git stash apply 'stash@{1}'
特别要注意的是,在按下选项卡时,posh自动完成了名称(这使我意识到了自己的错误)。
发布于 2021-01-28 20:50:24
把这个放在这里进行谷歌搜索:
如果您使用的是Windows运行程序和GitHub Actions,并且在像${{ github.ref }}
这样的表达式中错过了$
,也会发生这种情况。
在这种情况下,使这特别令人困惑的是,错误将与输出交织在一起,使其看起来来自您正在调用的任何内容。在我的例子中:
Run iscc.exe InstallCreation\inno\service.iss /DMyAppVersion={{ github.ref }}
iscc.exe InstallCreation\inno\service.iss /DMyAppVersion={{ github.ref }}
shell: C:\Program Files\PowerShell\7\pwsh.EXE -command ". '{0}'"
Unknown option: -encodedCommand
Inno Setup 6 Command-Line Compiler
-encodedCommand
与无关,与Inno Setup 6
无关。
https://stackoverflow.com/questions/50873021
复制相似问题