【发布时间】:2022-01-22 09:57:30
【问题描述】:
当在 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.
编辑: 如果我按照https://docs.github.com/en/get-started/getting-started-with-git/managing-remote-repositories 的说明从 SSH 切换到 HTTPS,我可以提交。但如果我再次从 HTTPS 切换到 SSH,我将无法提交。
【问题讨论】: