简体   繁体   中英

github.com: Permission denied (publickey)

I am trying to push my code in my local repository to github but I am stuck here:

$ 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 文件以重新初始化它,然后按照流程的其余部分将我的代码推送到远程存储库,这次它起作用了。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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