如何在vscode中更新SSH密码短语



当在VSCODE中提示时,我复制粘贴了一个错误的SSH密码短语,它被保存了,因为;保存";复选框已选中。现在我无法同步到Github。

有没有办法在VSCODE中更新错误的密码短语?我搜索了设置并在谷歌上搜索,但找不到方法。

这是git日志

> git pull --tags origin master
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.

编辑:如果我按照中的说明从SSH切换到HTTPS,我可以提交https://docs.github.com/en/get-started/getting-started-with-git/managing-remote-repositories.但是如果我再次从HTTPS切换到SSH,我就无法提交。

请求密码的可能不是VSCode,而是您的身份验证代理。在终端中尝试ssh-add -D。CCD_ 2将列出";记住";键。

最新更新