【发布时间】:2020-01-04 04:13:40
【问题描述】:
我创建了一个新的远程存储库,并尝试使用git push -u origin master 命令将我的本地文件推送到新的存储库中,这是我在add 它和commit 它之后的第一次。但是,它会弹出这个git@github.com: Permission denied (publickey). fatal: Could not read from remote repository.。我该如何解决这个致命错误?
我试过了
How to solve Permission denied (publickey) error when using Git?
这个链接中的问题似乎是第一次使用 git 时发生的。我已经使用我的 git 一段时间了,我还需要遵循这个解决方案吗?谁能给我一个更具体的解决方案?
这是我遇到的致命错误
C:\Users\ASUS\Desktop\React-Practice App\my-app>git status
On branch master
nothing to commit, working tree clean
C:\Users\ASUS\Desktop\React-Practice App\my-app>git push -u 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.
【问题讨论】: