我已经更新了我的Windows版Git。我检查了一下钥匙是否正确。唯一的“解决方案”就是从
ssh-agent
或者通过Git Bash打开VSCode。
那么,有什么有用的解决方案吗?
日志:
> git push origin master: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.
发布于 2018-09-13 11:31:15
发布于 2019-01-15 23:00:01
有许多方法可以让您的ssh密钥(使用密码短语)在VS Code的gitbash终端中工作。如果你没有的话,我会让你四处看看。
我假设你已经看过了,但仍然被困住了,因为你想要使用VSCode的UI。
如果是这样的话,this official page会告诉你原因:
基本上,您仍然需要通过git bash或通过运行ssh-agent
来运行它。
但是您可以使用putty绕过这种情况。我自己也没试过。
无论如何:希望它能有所帮助。
发布于 2019-08-12 21:34:57
您可以使用访问令牌(in Github)设置远程源,如下所示:
git remote set-url origin https://XXXX-YOUR-ACCESS-TOKEN-XXXXXX@github.com/your-account/your-repo.git
https://stackoverflow.com/questions/52306173
复制相似问题