我已经设置了 git 并在我的 Windows 系统中安装了它。我有带密码的 ssh key 。当我进入 git bash 它会询问我的密码并正确获取,但是当我在 中执行此操作时命令 或 外壳 它抛出一个错误。
Cloning into 'go\src\github.com\aws\aws-sdk-go'...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
(甚至不问密码)
这个 repo 只是一个例子。它发生在所有 repo 中。
最佳答案
ssh 已配置,但我们需要先启动 ssh 代理,然后在终端/powershell 中键入任何 go 命令
start-ssh-agent
关于git - 通过 windows cmd/powershell 去工作,但只有 git bash,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62223686/