简体   繁体   English

github.com:权限被拒绝(公钥)

[英]github.com: Permission denied (publickey)

I am trying to push my code in my local repository to github but I am stuck here:我正在尝试将本地存储库中的代码推送到 github,但我被困在这里:

$ git push 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.

问题可能出在您的 .git/config 文件中,因此在我的情况下,我继续删除 .git 文件以重新初始化它,然后按照流程的其余部分将我的代码推送到远程存储库,这次它起作用了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM