gpt4 book ai didi

powershell - SSH for git 在 Powershell 中不可用

转载 作者:行者123 更新时间:2023-12-02 13:46:57 25 4
gpt4 key购买 nike

我已经安装了 posh-git。在 git bash ssh -v 有效,但使用 powershell 则不行。我错过了什么,我该怎么办。

当我输入 时,我在 powershell 中收到以下错误ssh -v 在 PowerShell 中

ssh : The term 'ssh' is not recognized as the name of a cmdlet, function, script file, 
or operable program. Check the spelling of the name, or if a path was included,
verify that the path is correct and try again.
At line:1 char:1 + ssh -v
+ ~~~
+ CategoryInfo : ObjectNotFound: (ssh:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

最佳答案

添加 C:\Program Files\Git\usr\bin 路径 系统变量

关于powershell - SSH for git 在 Powershell 中不可用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39844176/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com