有人看到这个错误,知道该怎么办?
我正在使用终端,我在根目录,GitHub存储库存在,我现在不知道该怎么做.
> git push -u origin master
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Run Code Online (Sandbox Code Playgroud) 我创建了一个新的远程仓库,并试图使用git push -u origin master命令后,我对我的本地文件推到新的存储库中的第一次add它和commit它。然而,它弹出这个git@github.com: Permission denied (publickey). fatal: Could not read from remote repository.。我该如何修复这个致命错误?
我已经尝试过
使用 Git 时如何解决 Permission denied (publickey) 错误?
此链接中的问题似乎发生在第一次使用 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.
Run Code Online (Sandbox Code Playgroud)