使用命令 git stash apply stash@{1}
来应用一个 git stash:
如在git stash的文档中所建议的。
但我收到了以下错误信息:
unknown option: -encodedCommand error
使用命令 git stash apply stash@{1}
来应用一个 git stash:
如在git stash的文档中所建议的。
但我收到了以下错误信息:
unknown option: -encodedCommand error
我没有意识到...
我正在使用PowerShell(使用posh-git),当然,{}表示PowerShell代码。
因此,用''括起来将确保PowerShell将其解释为字符串。
git stash apply 'stash@{1}'
值得注意的是,posh-git在按下Tab键时会自动补全名称(这让我意识到了我的错误)。
将此放在此处以供Google搜索:
如果您使用的是Windows runner并且在表达式中错过了$
,例如${{ 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
无关。