使用posh-git模块时,我无法从原点拉取。有没有办法用posh-git配置我现有的ssh密钥位置来使用它们?原生git运行良好。
错误详细信息:
C:\Git\MyRepo [master ≡]
> git pull origin master
Could not create directory '/h//.ssh'.
The authenticity of host 'domain.net (10.a.b.xyz)' can't be established.
ECDSA key fingerprint is SHA256:nxxxx.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Failed to add the host to the list of known hosts (/h/.ssh/known_hosts).
git@domain.net: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.发布于 2020-07-24 08:06:19
我执行了以下操作来使用powershell检查我的主路径,
Command: $env:HOME
Output: H:\但我的计算机中没有任何H:\驱动器,所以我将其更新到.ssh文件夹所在的主目录中。
Command: [Environment]::SetEnvironmentVariable("HOME", "C:\Users\<UserName>", "User")在我完全关闭并重新打开powershell之后,它工作了:)
https://stackoverflow.com/questions/63061969
复制相似问题