vscode 无法使用git

1.vs code无法使用git push pull
2.用git bash 可以上传下拉克隆
3.网上有人说github后台 SSh keys没设置,可我设置了
4.
报错的代码

git push
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

图片描述

阅读 6.9k
2 个回答

ssh -T -v git@${url} 看一下 ssh 的连接问题是啥,应该是公钥没有设置好。

如果你的SSH添加了密码,重建一个无密码的就可以了

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题